Passing Variable(s) as kwargs
BJ Swope
bigblueswope at gmail.com
Mon Dec 6 12:47:27 EST 2010
>
> It's complaining that the 'minute' argument which you're passing to
> 'add_cron_job' is '*/run_interval_quantity', which the scheduler
> doesn't understand.
> --
>
Hey, what do you know, there's a forest amongst all those trees...
key_words = '*/%d' % (run_interval_quantity)
sched.add_cron_job(check_logging_db, minute = key_words)
Works!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101206/9a4d6f4a/attachment-0001.html>
More information about the Python-list
mailing list