Merge lp:~rvb/maas/nonce-bug-1190986-tasks into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Raphaël Badin | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1703 | ||||
Proposed branch: | lp:~rvb/maas/nonce-bug-1190986-tasks | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
142 lines (+88/-1) 5 files modified
etc/celeryconfig.py (+17/-1) etc/celeryconfig_common.py (+1/-0) services/region-worker/run (+1/-0) src/maasserver/tasks.py (+30/-0) src/maasserver/tests/test_tasks.py (+39/-0) |
||||
To merge this branch: | bzr merge lp:~rvb/maas/nonce-bug-1190986-tasks | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+190571@code.launchpad.net |
Commit message
Enable the master tasks. Add the cleanup_old_nonces task.
Description of the change
This requires the following changes in the packaging to work https:/
(I've built a package from this branch and the packaging branch mentioned above and QAed this in the lab.)
To post a comment you must log in.
Looks good.
[1]
+ 'cleanup- old-nonces' : { tasks.cleanup_ old_nonces' , minutes= 5), QUEUE_REGION} ,
+ 'task': 'maasserver.
+ 'schedule': timedelta(
+ 'options': {'queue': WORKER_
+ },
Does Celery ensure that jobs don't pile up? If a run of this job takes
more than 5 minutes (I'm thinking of the first run, maybe), will
Celery enqueue the next job, or will it be automatically cancelled?
Or... does schedule mean the time *between* runs, rather than a rigid
from-the-clock schedule?