Scheduler¶
flowtask.scheduler.scheduler
¶
NavScheduler.
Job for attaching tasks to the Scheduler.
NavScheduler
¶
NavScheduler.
Demonstrates how to use the asyncio compatible scheduler to schedule jobs.
fix_job_schedule
¶
fix_job_schedule.
Return a re-scheduled Job to cuirrent schedule.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
job
|
Job
|
instance of APScheduler Job. |
required |
job_id
|
str
|
ID of the job |
required |
get_cron_strings
¶
Returns cron strings. :param dict expression: an array of cron structures. :return: cron strings :rtype: dict
job_status
¶
React on Error events from scheduler.
:param apscheduler.events.JobExecutionEvent event: job execution event.
TODO: add the reschedule_job scheduler = sched.scheduler #it returns the native apscheduler instance scheduler.reschedule_job('my_job_id', trigger='cron', minute='*/5')
job_success
¶
Job Success.
Event when a Job was executed successfully.
:param apscheduler.events.JobExecutionEvent event: job execution event
periodic_lock_check
async
¶
Periodically checks if the lock is available, attempting to acquire if not held.