-
Notifications
You must be signed in to change notification settings - Fork 8
Description
The Cromwell docs describe the capability to have monitoring for every step of your workflow. The docs I have been able to find are limited:
https://cromwell.readthedocs.io/en/stable/wf_options/Google/
Which states:
Specifies a GCS URL to a script that will be invoked prior to the user command being run. For example, if the value for monitoring_script is "gs://bucket/script.sh", it will be invoked as ./script.sh > monitoring.log &. The value monitoring.log file will be automatically de-localized.
https://cromwell.readthedocs.io/en/latest/backends/Google/
Which states:
In order to monitor metrics (CPU, Memory, Disk usage...) about the VM during Call Runtime, a workflow option can be used to specify the path to a script that will run in the background and write its output to a log file.
{
"monitoring_script": "gs://cromwell/monitoring/script.sh"
}
The output of this script will be written to a monitoring.log file that will be available in the call gcs bucket when the call completes. This feature is meant to run a script in the background during long-running processes. It's possible that if the task is very short that the log file does not flush before de-localization happens and you will end up with a zero byte file.