Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1DEFAULT_INTERVAL = 1
2"""The default interval for jobs."""
5class FREQUENCIES:
6 """Pre-defined job frequencies."""
7 SECOND = "second"
8 SECONDS = "seconds"
9 MINUTE = "minute"
10 MINUTES = "minutes"
11 HOUR = "hour"
12 HOURS = "hours"
13 DAY = "day"
14 DAYS = "days"
15 WEEK = "week"
16 WEEKS = "weeks"
17 MONDAY = "monday"
18 TUESDAY = "tuesday"
19 WEDNESDAY = "wednesday"
20 THURSDAY = "thursday"
21 FRIDAY = "friday"
22 SATURDAY = "saturday"
23 SUNDAY = "sunday"
26FREQUENCY_CHOICES = (
27 FREQUENCIES.SECOND,
28 FREQUENCIES.SECONDS,
29 FREQUENCIES.MINUTE,
30 FREQUENCIES.MINUTES,
31 FREQUENCIES.HOUR,
32 FREQUENCIES.HOURS,
33 FREQUENCIES.DAY,
34 FREQUENCIES.DAYS,
35 FREQUENCIES.WEEK,
36 FREQUENCIES.WEEKS,
37 FREQUENCIES.MONDAY,
38 FREQUENCIES.TUESDAY,
39 FREQUENCIES.WEDNESDAY,
40 FREQUENCIES.THURSDAY,
41 FREQUENCIES.FRIDAY,
42 FREQUENCIES.SATURDAY,
43 FREQUENCIES.SUNDAY,
44)
45"""A list of all available frequencies for the command line."""
48class STATUS:
49 """The execution status of scheduled job."""
51 CRITICAL = "critical"
52 FAILURE = "failure"
53 RETRY = "retry"
54 SUCCESS = "success"
55 UNKNOWN = "unknown"