Source code for superdjango.contrib.scheduler.constants

DEFAULT_INTERVAL = 1
"""The default interval for jobs."""


[docs]class FREQUENCIES: """Pre-defined job frequencies.""" SECOND = "second" SECONDS = "seconds" MINUTE = "minute" MINUTES = "minutes" HOUR = "hour" HOURS = "hours" DAY = "day" DAYS = "days" WEEK = "week" WEEKS = "weeks" MONDAY = "monday" TUESDAY = "tuesday" WEDNESDAY = "wednesday" THURSDAY = "thursday" FRIDAY = "friday" SATURDAY = "saturday" SUNDAY = "sunday"
FREQUENCY_CHOICES = ( FREQUENCIES.SECOND, FREQUENCIES.SECONDS, FREQUENCIES.MINUTE, FREQUENCIES.MINUTES, FREQUENCIES.HOUR, FREQUENCIES.HOURS, FREQUENCIES.DAY, FREQUENCIES.DAYS, FREQUENCIES.WEEK, FREQUENCIES.WEEKS, FREQUENCIES.MONDAY, FREQUENCIES.TUESDAY, FREQUENCIES.WEDNESDAY, FREQUENCIES.THURSDAY, FREQUENCIES.FRIDAY, FREQUENCIES.SATURDAY, FREQUENCIES.SUNDAY, ) """A list of all available frequencies for the command line."""
[docs]class STATUS: """The execution status of scheduled job.""" CRITICAL = "critical" FAILURE = "failure" RETRY = "retry" SUCCESS = "success" UNKNOWN = "unknown"