hpcflow.sdk.helper.watcher.WorkflowMonitor#
- class hpcflow.sdk.helper.watcher.WorkflowMonitor(workflow_paths, watch_interval, logger)#
Bases:
object
Workflow monitor.
Methods
Triggered on a workflow being modified.
Stop this monitor.
Change the set of paths to monitored workflows.
- Parameters:
- on_modified(event)#
Triggered on a workflow being modified.
- Parameters:
event (FileSystemEvent) –
- stop()#
Stop this monitor.
- Return type:
None
- update_workflow_paths(new_paths)#
Change the set of paths to monitored workflows.
- Parameters:
new_paths (list[dict[str, pathlib.Path]]) –