Issue #2615
closedScheduled calls support broken for Celery4+Kombu4
Description
This issue only affects Pulp when used with the Celery4+Kombu4. For example in a Fedora26 environment or if you manually install the stack via pip.
You can test this with pulp smash by running:
workon pulp-smash
python3 -m unittest pulp_smash.tests.rpm.api_v2.test_schedule_publish.ScheduledPublishTestCase.test_total_run_count
To reproduce with hand testing:
1. Sync a repo
2. Configure it to publish ever N minutes (e.g. the pulp smash does it every 2 minutes)
3. Observe that waiting N minutes no scheduled publishes occur
Updated by bmbouter over 6 years ago
- Sprint/Milestone set to 34
Adding to Sprint since this will be broken in F26.
Updated by dalley over 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by pthomas@redhat.com over 6 years ago
Updated by bmbouter over 6 years ago
To do some hand testing on this I do the following:
1. I start with a Pulp system that is brand new and has the zoo repo on it
2. Configure the zoo repo to publish every 30 seconds.
phttp POST https://localhost/pulp/api/v2/repositories/zoo/distributors/export_distributor/schedules/publish/ <<< '{"schedule": "PT30S"}'
3. Observe the task run via the logs every 30 seconds.
4. Read the schedule call to observe its total_run_count is increasing. I do this with:
phttp GET https://localhost/pulp/api/v2/repositories/zoo/distributors/export_distributor/schedules/publish/
Updated by dalley over 6 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp|344a102808a00884c6d34ebe7750ceb5b63b877b.
Updated by dalley over 6 years ago
- Status changed from MODIFIED to POST
https://github.com/pulp/pulp/pull/2970
I am not sure what happened, I did not modify this issue nor push code, only create a pull request
Added by dalley over 6 years ago
Updated by dalley over 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|619fc12fa80b9b14571a57a2da1b71cdfba9cdc6.
Added by dalley over 6 years ago
Fixes scheduled calls with Celery 4.x.
Celery 4.x changes a number of implentation details which breaks our assumptions about how the scheduling system works. Therefore, we want to check for the celery version and take actions to trigger the desired behavior depending on that celery version.
Added by dalley over 6 years ago
Fixes scheduled calls with Celery 4.x.
Celery 4.x changes a number of implentation details which breaks our assumptions about how the scheduling system works. Therefore, we want to check for the celery version and take actions to trigger the desired behavior depending on that celery version.
Updated by dalley over 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|baf6f1cf2289fc4db0ef251c8c305f2a886bdda9.
Updated by bizhang over 6 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Fixes scheduled calls with Celery 4.x.
Celery 4.x changes a number of implentation details which breaks our assumptions about how the scheduling system works. Therefore, we want to check for the celery version and take actions to trigger the desired behavior depending on that celery version.
closes #2615 https://pulp.plan.io/issues/2615