Change the workflow table to split the run_number into two integers: one referring to the generation of the workflows, and the other one referring to the restart number, thus removing the limit of 9 restarts.
Closes #186.
To test the PR, these quick scripts might be come in handy:
1) Run the specified number of workflows on REANA (default 15), to be run from a workflow directory (such as roofit).
#!/bin/bash
# Set the default number of runs to 15 if no argument is passed
NUM_RUNS=${1:-15}
# Run the setup environment command
eval $(reana-dev client-setup-environment)
# Run the workflow the specified number of times
for (( i=1; i<=NUM_RUNS; i++ ))
do
echo "Starting run $i of $NUM_RUNS..."
reana-client run -w root6-roofit
echo "Run $i submitted."
done
2) Restart a specific generation of the roofit demo workflow (default 1) a certain number of times (default 15). ./restart.sh 50 3 will restart root6-roofit.3 50 times.
#!/bin/bash
# Set the default number of runs to 15 if no argument is passed
NUM_RUNS=${1:-15}
TO_RESTART=${2:-1}
# Run the setup environment command
eval $(reana-dev client-setup-environment)
# Run the workflow the specified number of times
for (( i=1; i<=NUM_RUNS; i++ ))
do
echo "Starting restart $i of $NUM_RUNS..."
reana-client restart -w root6-roofit.$TO_RESTART
echo "Restart $i submitted."
done
Change the workflow table to split the run_number into two integers: one referring to the generation of the workflows, and the other one referring to the restart number, thus removing the limit of 9 restarts.
Closes #186.
To test the PR, these quick scripts might be come in handy: 1) Run the specified number of workflows on REANA (default 15), to be run from a workflow directory (such as roofit).
2) Restart a specific generation of the roofit demo workflow (default
1
) a certain number of times (default15
)../restart.sh 50 3
will restartroot6-roofit.3
50 times.