cromwell
cromwell copied to clipboard
Can cromwell trigger workflow status change event?
Cromwell has REST api to query the workflow status,'RUNNING','Aborted' etc. Does Cromwell has any event system to subscribe these events? With these events, outside apps can monitor the workflow in real time.
It is not about cromwell subscribing its own events. As u already said, cromwell has exposed restful api for external integration, so it is your job to monitor workflow status as u want such as maintaining an event system like influxdb. Say, you can setup a telegraf exec plugin for polling cromwell server periodically and streaming status into infuxdb, then use influxdb as an event system and trigger all downstream actions once status is changed, you can even setup a grafana as dashboard of workflows monitor system. Or if your crowmwell server can be accessed via internet, the easier way is to poll it from AWS lambda and put workflow status to aws SQS or SNS.