Fix issue if job manager restart and task is already present.
This commit is contained in:
parent
744a748e81
commit
a9c323c81d
|
@ -13,7 +13,10 @@ if [ "$1" = "standalone-job" ]; then
|
||||||
|
|
||||||
/docker-entrypoint.sh jobmanager &
|
/docker-entrypoint.sh jobmanager &
|
||||||
sleep 5
|
sleep 5
|
||||||
exec flink run $@
|
if ! flink list | grep 'RUNNING'; then
|
||||||
|
flink run $@
|
||||||
|
fi
|
||||||
|
wait
|
||||||
else
|
else
|
||||||
exec /docker-entrypoint.sh $@
|
exec /docker-entrypoint.sh $@
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue