akvo.rsr.models.cron_job module

class akvo.rsr.models.cron_job.CronJobMixin(*args, **kwargs)[source]

Bases: Model

class Meta[source]

Bases: object

abstract = False
class Status(value)[source]

Bases: TextChoices

An enumeration.

FAILED = 'FAILED'
FINISHED = 'FINISHED'
MAXXED = 'MAXXED'
RUNNING = 'RUNNING'
SCHEDULED = 'SCHEDULED'
attempts

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)
get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
mark_failed()[source]
mark_finished()[source]
mark_maxxed()[source]
mark_running()[source]
mark_scheduled()[source]
pid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

status

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

updated_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.