Skip to content

Commit

Permalink
don't require temporal for central controller startup
Browse files Browse the repository at this point in the history
  • Loading branch information
glimberg committed Nov 17, 2023
1 parent 2e882b4 commit d37dce5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ext/central-controller-docker/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ else
done
fi

echo "Waiting for temporal"
while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do
echo "waiting...";
sleep 1;
done
echo "Temporal is up"
if [ -n "$ZT_TEMPORAL_HOST" ] && [ -n "$ZT_TEMPORAL_PORT" ]; then
echo "waiting for temporal..."
while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do
echo "waiting...";
sleep 1;
done
echo "Temporal is up"
fi

export GLIBCXX_FORCE_NEW=1
export GLIBCPP_FORCE_NEW=1
Expand Down

0 comments on commit d37dce5

Please sign in to comment.