Version:

salvus.flow.executors.functions

salvus.flow.executors.functions salvus flow executors functions
Utility site functions that don't quite fit elsewhere.

Functions

initialize_or_update_site()

Initialize (or update) the site by testing if everything works as expected.
SIGNATURE
def initialize_or_update_site(
    site: BaseExecutor,
    verbosity: int = 1,
    wait_for_initial_run_in_seconds: float = 3.0,
) -> None: ...
ARGUMENTS
Required
site
Type:BaseExecutor
Description:
The site to use.
Optional
verbosity
Type:int
Default value:1
Description:
Verbosity level.
Optional
wait_for_initial_run_in_seconds
Type:float
Default value:3.0
Description:
How long to wait for the job to finish before querying for the first time. 3 seconds is a good number for most cases, for testing this can be shortened.

Exceptions

SalvusSiteInitError

Parent class: builtins.ValueError
Descriptive error class for site initialization errors.
Args: message: Error message. suggestion_to_fix: A suggestion on how to fix the error.
PAGE CONTENTS