pi_portal.modules.tasks.workers.cron_jobs.disk_space.CronJob
- class pi_portal.modules.tasks.workers.cron_jobs.disk_space.CronJob(log: logging.Logger, registry: TaskRegistry)[source]
Bases:
CronJobBase[Args]Periodically check for free disk space below a threshold.
Rather than send a job to queue, this simple job runs directly.
- __init__(log: logging.Logger, registry: TaskRegistry) None[source]
- schedule(scheduler: TaskScheduler) None
Schedule a task execution.
- Parameters:
scheduler (TaskScheduler) – A task scheduler instance.
- tick() None
Advance the cron timer.