ScheduledTask package¶
ScheduledTask.scheduler module¶
The scheduler module: Application task scheduler.
Provides the applications task scheduler for running the AMT distribution import task on a daily basis.
- Src.ScheduledTask.scheduler.scheduler = <apscheduler.schedulers.background.BackgroundScheduler object>¶
The background scheduler global
ScheduledTask.task module¶
The task module: Application AMT import task.
Provides the applications AMT distribution import tasks to be run by the task scheduler on a daily basis.
- Src.ScheduledTask.task.importer_task(app)[source]¶
The task to be scheduler and run by the applications background scheduler. This task aims to check for updates for new AMT distributions provided by the NCTS API. If the task fails to run successfully, the registered admin user of the Flask application will be notified via email.
- Parameters:
app (Flask applicaton) – The current flask application to provide application context with