Skip to main content

Module gate

Module gate 

Source
Expand description

The gate for target-side steps: lease, cancellation, session and connectivity checks.

Structsยง

Gate ๐Ÿ”’
Decides, before each target-side try, whether the attempt may proceed; see Gate::check.

Constantsยง

MAX_LEASE ๐Ÿ”’
The furthest execute_by is allowed to lie ahead.

Functionsยง

datetime_to_instant ๐Ÿ”’
Converts a UTC DateTime to an [Instant]; past maps to now, far future caps at now + 24h.
lease_or_cancel ๐Ÿ”’
Aborts if the lease has expired or the run is cancelled, lease first.
wait_for_connectivity ๐Ÿ”’
Polls every second until connectivity is fresh, the lease expires, or the run is cancelled.

Type Aliasesยง

LastOk ๐Ÿ”’
Reads the time of the last successful server contact.