-
Sometimes the scripts hang and dagu job continues to wait for it infinitely. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Dagu doesn't have max running time option right now (any contribution will be welcomed). steps:
# other steps
- name: checker
command: bash
script: |
start=`date +%s`
DAG=/path/to/DAG.yaml
while :
do
isRunning=`dagu status $DAG`
now=`date +%s`
if the DAG is finished then exit 0
if the DAG is running too long then
dagu stop $DAG
end
sleep 1
done |
Beta Was this translation helpful? Give feedback.
-
hi yohamta, thanks for the idea, i will try it out! |
Beta Was this translation helpful? Give feedback.
Dagu doesn't have max running time option right now (any contribution will be welcomed).
One way to check running time and stop when needed is using bash script. Here's the rough idea.