Fix issue if job manager restart and task is already present.

This commit is contained in:
Charles DELFLY 2021-01-22 16:38:50 +07:00 committed by Roy Kim
parent 744a748e81
commit a9c323c81d
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ if [ "$1" = "standalone-job" ]; then
/docker-entrypoint.sh jobmanager &
sleep 5
exec flink run $@
if ! flink list | grep 'RUNNING'; then
flink run $@
fi
wait
else
exec /docker-entrypoint.sh $@
fi