Issue #2838
closed
Updating/Adding a sync schedule does not trigger an immediate sync
Description
In the RPM/Yum plugin whenever you add a sync schedule without a start time in the future (for example, P1D) it starts a sync task immediately.
The Python plugin does not do this. It should be consistent.
- Priority changed from Normal to Low
- Triaged changed from No to Yes
- Tags deleted (
Sync Performance)
Did you schedule this through pulp-admin, or through the API directly?
The logic that chooses when to next run a scheduled task has no idea what kind of task is in question, let alone what type of repo is being acted on. Whatever caused this behavior is hopefully a simple bug along the way. The only possible difference that comes to mind is the chance that pulp-admin's python repo support is passing arguments to the API differently.
mikea, You can see exactly the calls that pulp-admin is producing using the -vv flag. It needs to be the first option like pulp-admin -vv rpm repo ...
mhrivnak wrote:
Did you schedule this through pulp-admin, or through the API directly?
The logic that chooses when to next run a scheduled task has no idea what kind of task is in question, let alone what type of repo is being acted on. Whatever caused this behavior is hopefully a simple bug along the way. The only possible difference that comes to mind is the chance that pulp-admin's python repo support is passing arguments to the API differently.
These are schedules created via the API, not pulp-admin. I haven't actually tried doing this with the pulp-admin cli.
My code that creates the schedule is exactly the same regardless of the repo type. The behavior is that when a new schedule is created for yum repositories without a time in the future (P1D, for example), a sync immediately starts. This does not happen with python repositories.
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Also available in: Atom
PDF