jobflow_remote.testing package#

Submodules#

Module contents#

A series of toy workflows that can be used for testing.

jobflow_remote.testing.add(a, b)[source]#

Adds two numbers together and writes the answer to a file.

jobflow_remote.testing.add_big(a: float, b: float)[source]#

Adds two numbers together and inflates the answer to a large list and tries to store that within the defined store.

jobflow_remote.testing.add_big_undefined_store(a: float, b: float)[source]#

Adds two numbers together and writes the answer to an artificially large file which is attempted to be stored in a undefined store.

jobflow_remote.testing.add_sleep(a, b)[source]#

Adds two numbers together and sleeps for “b” seconds.

jobflow_remote.testing.always_fails() NoReturn[source]#

A job that always fails.

jobflow_remote.testing.arithmetic(a: float | list[float], b: float | list[float], op: Callable | None = None) float | None[source]#
jobflow_remote.testing.check_env_var() str[source]#
jobflow_remote.testing.create_detour(detour_job: Job)[source]#

Create a detour based on the passed Job.

jobflow_remote.testing.ignore_input(a: int) int[source]#

Can receive an input, but ignores it.

Allows to test flows with failed parents

jobflow_remote.testing.self_replace(n: int)[source]#

Create a replace Job with the same job n times.

jobflow_remote.testing.write_file(n) None[source]#