From 6fe90d0aa09d6d080401a9057b1c9a9327b509fb Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Fri, 21 Jun 2019 20:36:09 +0000 Subject: [PATCH] update example workflow --- examples/workflow-example-01.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/workflow-example-01.py b/examples/workflow-example-01.py index cd8b0b03..b90421e3 100644 --- a/examples/workflow-example-01.py +++ b/examples/workflow-example-01.py @@ -198,7 +198,7 @@ '03-ECHO' : {'command': '/bin/echo "START JOB ID: $id" > /tmp/workflow.$timeStamp/$id.out'}, '04-MD5SUM' : {'command': '/bin/md5sum $filePath | cut -f1 -d" "', 'outputVariableRegexList' : ['(?P<md5Sum>.*)']}, '05-ECHO' : {'command': 'echo "FILE $filePath MD5 SUM: $md5Sum" >> /tmp/workflow.$timeStamp/$id.out'}, - '06-RANDOM' : {'command': 'echo $((`date +%s` % 10))', 'outputVariableRegexList' : ['(?P<randomNumber>.*)']}, + '06-RANDOM' : {'command': 'echo $((1 + RANDOM % 10))', 'outputVariableRegexList' : ['(?P<randomNumber>.*)']}, '07-ECHO' : {'command': 'echo "RANDOM NUMBER: $randomNumber" >> /tmp/workflow.$timeStamp/$id.out'}, '08-SLEEP' : {'command': 'sleep $randomNumber'}, '09-COUNT' : {'command': 'echo 0', 'outputVariableRegexList' : ['(?P<count>.*)']}, -- GitLab