Trying to run some CLI on schedule like
create-job-once-a-day:
hours: <DYNAMIC VALUE>
minutes: <DYNAMIC VALUE>
thread: true
function: >
logging.critical('HELLO')
Is It possible to take the DYNAMIC VALUES from dynamic sources like a file?
One possibility is to run every minute, and check the time (or for any condition) in the
function. For example:In
mymodule.py:Schedules are quite efficient, so this won't impact the CPU.