job_util#

Implementation of essential functions for a BaseJob.

Author: Jendrik A. Potyka, Fabian A. Preiss

Functions

check_duplicate_effective_timings(job_type, ...)

Raise given timings are not effectively duplicates.

check_timing_tzinfo(job_type, timing, tzinfo)

Raise if timing incompatible with tzinfo for job_type.

get_pending_timer(timers)

Get the the timer with the largest overdue time.

prettify_timedelta(timedelta)

Humanize timedelta string readability for negative values.

sane_timing_types(job_type, timing)

Determine if the JobType is fulfilled by the type of the specified timing.

set_start_check_stop_tzinfo(start, stop, tzinfo)

Raise if start, stop and tzinfo incompatible; Make start.

standardize_timing_format(job_type, timing)

Return timings in standardized form.