We have setup a Event Listener to watch for arrival of files and to start a jobflow when they arrive.
We need to have a jobflow only run one at a time, but multiple files can land in short order.
We created the file listener:
Type of Check: File Added
Filename match type: Regex filename match
Filename Pattern:
Check every seconds: 300
Trigger task when file has not changed for X Check: Unchecked
Ignore Empty: Checked
Sandbox:
JobFlow: jobflow/XXX.jbf
We configured the jobflow:
max_running_concurrently 1
enqueue_executions true
but they run concurrently.
(The jobflow calls other jobflows, and a graph.) The toplevel jobflow the Event Listener is configured to start is what we change to configuration on to say only run 1, but queue up others if multiple files are present.