listers: Allow to override policy and priority for scheduled tasks
Prior to this commit, the policy and priority were hard-coded. The default values are now the old hard-coded values. This will allow to develop a cli to trigger forges listing with oneshot policy and some priority tasks. Thus ingesting those faster and without manual interventation as we currently do.
This commit is contained in:
parent
5727f15cf3
commit
87d2a16df0
5 changed files with 17 additions and 6 deletions
|
@ -51,7 +51,8 @@ class PackagistLister(ListerOnePageApiTransport, SimpleLister):
|
|||
needed for the ingestion task creation.
|
||||
|
||||
"""
|
||||
return utils.create_task_dict('load-%s' % origin_type, 'recurring',
|
||||
return utils.create_task_dict('load-%s' % origin_type,
|
||||
kwargs.get('policy', 'recurring'),
|
||||
kwargs.get('name'), origin_url)
|
||||
|
||||
def list_packages(self, response):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue