hpcflow.sdk.app.App#
- class hpcflow.sdk.app.App(*args, **kwargs)#
Bases:
BaseApp
Class from which to instantiate downstream app objects (e.g. MatFlow).
Methods
Clear the known-submissions file of all submissions.
Get a dict mapping parameter types to task schemas that input/output each parameter.
We segregate by hostname to account for the case where multiple machines might use the same shared file system
Return a decorator for retrying functions on permission and OS errors that might be associated with cloud-storage desktop sync.
Retrieve existing workflows that might be running.
Set workflows in the known-submissions file to the non-running state.
Attributes
- clear_known_submissions_file()#
Clear the known-submissions file of all submissions. This shouldn’t be needed normally.
- property command_files: CommandFilesList#
- property envs: EnvironmentsList#
- get_parameter_task_schema_map()#
Get a dict mapping parameter types to task schemas that input/output each parameter.
- get_user_data_dir()#
We segregate by hostname to account for the case where multiple machines might use the same shared file system
- property known_subs_file_name#
- property known_subs_file_path#
- load_config(config_dir=None, config_invocation_key=None, **overrides)#
- Return type:
None
- load_template_components(warn=True)#
- Return type:
None
- property parameters: ParametersList#
- perm_error_retry()#
Return a decorator for retrying functions on permission and OS errors that might be associated with cloud-storage desktop sync. engine operations.
- read_known_submissions_file()#
Retrieve existing workflows that might be running.
- reload_config(config_dir=None, config_invocation_key=None, **overrides)#
- Return type:
None
- reload_template_components(warn=True)#
- Return type:
None
- property run_time_info: RunTimeInfo#
- property scripts#
- set_inactive_in_known_subs_file(inactive_IDs)#
Set workflows in the known-submissions file to the non-running state.
Note we aim for atomicity to help with the scenario where a new workflow submission is adding itself to the file at the same time as we have decided an existing workflow should no longer be part of this file. Ideally, such a scenario should not arise because both operations should only ever be interactively initiated by the single user (Workflow.submit and App.get_known_submissions). If this operation is atomic, then at least the known-submissions file should be left in a usable (but inaccurate) state.
- property task_schemas: TaskSchemasList#
- property template_components: Dict[str, ObjectList]#
- template_components_from_json_like(json_like)#
- Return type:
None