minos.networks.scheduling.crontab

Classes

CronTab

CronTab class.

class CronTab[source]

Bases: object

CronTab class.

__init__(pattern)[source]
Parameters

pattern (Union[str, CronTab]) –

property impl: Optional[crontab._crontab.CronTab]

Get the crontab implementation.

Returns

A crontab.CronTab or None.

async sleep_until_next(*args, **kwargs)[source]

Sleep until next matching.

Parameters
  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

Returns

This method does not return anything.

Return type

None

get_delay_until_next(now=None)[source]

Get the time to wait for next matching.

Parameters

now (Optional[datetime]) – Current time.

Returns

Return type

float

property repetitions: Union[int, float]

Get the number of repetitions.

Returns

A float value.