Bug 794547

Summary: Implement "cron_sync" command
Product: [Community] PulpDist Reporter: Nick Coghlan <ncoghlan>
Component: Management CLIAssignee: Nick Coghlan <ncoghlan>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecified   
Target Milestone: 0.1.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-04 06:02:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nick Coghlan 2012-02-17 05:00:49 UTC
This command is a workaround for the lack of scheduling support for plugin-based repositories in the current upstream Pulp releases.

The command will look for a repo.notes.pulpdist.check_hours attribute on each repo with sync enabled in the importer configuration. For every repo where the current hour of the day modulo the "check_hours" attribute is 0, the client will initiate a sync operation.

The command will support a --threads option (defaulting to 8). That is the maximum number of concurrent sync operations the client will initiate.

Comment 1 Nick Coghlan 2012-04-04 06:02:25 UTC
Cron sync has been implemented for 0.0.11.

The relevant notes entry is pulpdist.sync_hours.

Only one cron_sync job can be running on a system at a time, even if it affects a different Pulp host.