Skip to main content

Module connection_jobs

Module connection_jobs 

Source
Expand description

schedr connections check and test on this worker (decisions 174, 193, 198-200): a check renders each connection through the worker’s secret storages, saying of every secret it names whether it is there (never a value); a test opens one connection in a runner and runs its check, as a one-off attempt beside the tasks (no slot), stopped after its timeout. One job at a time per worker.

Structs§

ConnectionJob
A connections job, as the master sent it.

Constants§

CANCEL_GRACE
How long a test’s process gets from SIGTERM to SIGKILL, unless connection_job_cancel_grace says.

Functions§

check
Renders each connection of registry (decision 174): its secrets present or missing, and whether it renders, a refused one with why.
failed
A connection that couldn’t be checked or tested, with why.
out_of_time
Why a job ran out of its time while doing what.
test_report
A test’s report from its attempt’s end (its error masked as any attempt’s is).
test_spec
The one-off attempt a test of name runs (decision 198): a Python “task” of the connection’s file, its runner told to open and check the connection instead.