Actions
Issue #1713
closedDisabling schedule does not work if number of recurrences was specified
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
- create a repo
$ pulp-admin rpm repo create --repo-id yar1 --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ --relative-url yar1
- schedule sync to run every 30 seconds and specify the number of recurrences
$ pulp-admin rpm repo sync schedules create -s R2/PT30S --repo-id yar1
- wait for more that 1.5 minutes and look at the schedule report. It says that schedule is not enabled anymore but total_run_count is still increasing and also you can check that the list of completed sync tasks for your repo is growing too
$ pulp-admin -vv rpm repo sync schedules list --repo-id yar1
+----------------------------------------------------------------------+
Schedules
+----------------------------------------------------------------------+
2016-02-24 13:54:52,262 - DEBUG - sending GET request to /pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/
2016-02-24 13:54:52,293 - INFO - GET request to /pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/ with parameters None
2016-02-24 13:54:52,293 - INFO - Response status : 200
2016-02-24 13:54:52,293 - INFO - Response body :
[
{
"next_run": "2016-02-24T12:55:16Z",
"task": "pulp.server.controllers.repository.queue_sync_with_auto_publish",
"last_updated": 1456318491.582464,
"first_run": "2016-02-24T12:52:46Z",
"schedule": "R2/PT30S",
"args": [
"yar1"
],
"enabled": false,
"last_run_at": "2016-02-24T12:54:46Z",
"_id": "56cda79ee1382316a16a7492",
"total_run_count": 5,
"failure_threshold": null,
"kwargs": {
"overrides": {},
"scheduled_call_id": "56cda79ee1382316a16a7492"
},
"resource": "pulp:importer:yar1:yum_importer",
"remaining_runs": 0,
"consecutive_failures": 0,
"_href": "/pulp/api/v2/repositories/yar1/importers/yum_importer/schedules/sync/56cda79ee1382316a16a7492/"
}
]
Schedule: R2/PT30S
Id: 56cda79ee1382316a16a7492
Enabled: False
Next Run: 2016-02-24T12:55:16Z
- explicitly disabling this schedule does not help either
pulp-admin rpm repo sync schedules update --schedule-id 56cda79ee1382316a16a7492 --enabled false --repo-id yar1
This issue is presented at least in 2.7 and 2.8.
Actions