[Pulp-list] HELP - Converting from crontab to interval scheduler
Jay Dobies
jason.dobies at redhat.com
Tue Mar 29 14:08:15 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/29/2011 10:05 AM, Jason L Connor wrote:
> Hi All,
>
> We are converting from using the crontab for scheduled repo syncs to
> using a new interval scheduler (start_time, interval, iterations).
>
> I'm looking for ways to properly handle this conversion for existing
> repo schedules. Here some of the ideas I've had:
> 1. Migrate the database and parse the repo schedule and convert it
> into an interval schedule that, as closely as possible,
> resembles the current crontab schedule. This has the drawback
> that we currently don't have the ability to parse the schedules
> in any meaningful way and I've no idea how long it would take to
> write/port one.
> 2. Migrate the database and blank out any schedules we find,
> logging the fact, and writing messages to stderr for the user to
> check the log. This seems kinda dirty, but it's probably the
> easiest in terms of getting finished on time this sprint.
> 3. Same as #2, but back up the original crontab schedule into a new
> repo field so that we can properly migrate it in the future.
> 4. <You idea here>
>
> I'm not super happy about any of these options, so feedback is both
> welcome and needed at this point.
Scheduled repo sync hasn't worked in a while, so I'm going to say we
take advantage of the fact that we're pre-alpha and just clean up any
crontab entries and mention in the release notes that they have to
re-add repo schedules.
- --
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNkefPAAoJEOMmcTqOSQHCwRAIAMIJr0W2yqYQZ//GC92LHMnk
anzoRTrEdMlVrRNgbSoerIL9De6/Udm4iELqTWkevQP1kczApcBrc//CPm54nwZp
o+8x1J1Xrh3kgaeS6SQ9LmsOQN+NOzslOU0RAd8C5kgKXsh40ctEdfaEyvy5unsQ
vq9PMElbryQI/QYYlF4bnvjUX3G/pCYGV8hIjNThXNWwDomPECPc+Epn5WL6IbGY
jQa7tQuqT0Vm6TftwAG0L8ho6+l/ElUC5xh/nKlP/0LM0OVrah7UWgpeZOosK3t/
nI7JX/MUvYGhJRKw6m9Zml/Mt9HVXkWA1vVEbvsnO6othRZp376gtSO8UVNmljA=
=YFH3
-----END PGP SIGNATURE-----
More information about the Pulp-list
mailing list