flambe.runnable.runnable
¶
Module Contents¶
-
class
flambe.runnable.runnable.
Runnable
(**kwargs)[source]¶ Bases:
flambe.compile.MappedRegistrable
Base class for all runnables.
A runnable contains a single run method that needs to be implemented. It must contain all the logic for the runnable.
Each runnable has also access to the secrets the user provides.
Examples of Runnables: Experiment, Cluster
-
config
¶ The secrets that the user provides. For example, ‘config[“AWS”][“ACCESS_KEY”]’
Type: configparser.ConfigParser
-
inject_secrets
(self, secrets: str)[source]¶ Inject the secrets once the Runnable was created.
Parameters: secrets (str) – The filepath to the secrets
-
inject_extensions
(self, extensions: Dict[str, str])[source]¶ Inject extensions to the Runnable
Parameters: extensions (Dict[str, str]) – The extensions
-