Merge lp:~bac/charmworld/make-queue-a-job into lp:charmworld
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 470 |
Merged at revision: | 469 |
Proposed branch: | lp:~bac/charmworld/make-queue-a-job |
Merge into: | lp:charmworld |
Diff against target: |
448 lines (+177/-45) 6 files modified
charmworld/jobs/lp.py (+16/-6) charmworld/jobs/tests/test_lp.py (+47/-0) charmworld/jobs/tests/test_worker.py (+58/-26) charmworld/jobs/worker.py (+26/-11) charmworld/testing/__init__.py (+29/-0) docs/hacking.rst (+1/-2) |
To merge this branch: | bzr merge lp:~bac/charmworld/make-queue-a-job |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Charmworld Developers | Pending | ||
Review via email: mp+200027@code.launchpad.net |
Commit message
Run charm/bundle queue and ingest from one script
Originally, queueing was run from a cronjob every fifteen minutes. Stuff was
added without regard to it being queued up already.
Ingest was run continuously but slept fifteen minutes when it completed before
looking at the queue again.
This change makes the supervisord-run worker do the queue job, then ingest
charms and bundles. At the end, it sleeps for fifteen minutes minus the
amount spent doing the work.
The charmworld charm needs to be fixed to not create the cronjob for
queueing. It hasn't been done yet but the bin/queued script that is called by
the cronjob needs to be disabled before this change lands or the queueing will
be run by two different approaches.
https:/
R=benji
Description of the change
Run charm/bundle queue and ingest from one script
Originally, queueing was run from a cronjob every fifteen minutes. Stuff was
added without regard to it being queued up already.
Ingest was run continuously but slept fifteen minutes when it completed before
looking at the queue again.
This change makes the supervisord-run worker do the queue job, then ingest
charms and bundles. At the end, it sleeps for fifteen minutes minus the
amount spent doing the work.
The charmworld charm needs to be fixed to not create the cronjob for
queueing. It hasn't been done yet but the bin/queued script that is called by
the cronjob needs to be disabled before this change lands or the queueing will
be run by two different approaches.
Reviewers: mp+200027_ code.launchpad. net,
Message:
Please take a look.
Description:
Run charm/bundle queue and ingest from one script
Originally, queueing was run from a cronjob every fifteen minutes.
Stuff was
added without regard to it being queued up already.
Ingest was run continuously but slept fifteen minutes when it completed
before
looking at the queue again.
This change makes the supervisord-run worker do the queue job, then
ingest
charms and bundles. At the end, it sleeps for fifteen minutes minus the
amount spent doing the work.
The charmworld charm needs to be fixed to not create the cronjob for
queueing. It hasn't been done yet but the bin/queued script that is
called by
the cronjob needs to be disabled before this change lands or the
queueing will
be run by two different approaches.
https:/ /code.launchpad .net/~bac/ charmworld/ make-queue- a-job/+ merge/200027
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/45440043/
Affected files (+147, -43 lines): jobs/lp. py jobs/tests/ test_lp. py jobs/tests/ test_worker. py jobs/worker. py testing/ __init_ _.py
A [revision details]
M charmworld/
M charmworld/
M charmworld/
M charmworld/
M charmworld/