Skip to content

Commit

Permalink
fix comparison operator (getredash#5945)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoudaisuke authored Apr 20, 2023
1 parent ad7d30f commit 64c24b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ workers_healthcheck() {
WORKERS_COUNT=${WORKERS_COUNT}
echo "Checking active workers count against $WORKERS_COUNT..."
ACTIVE_WORKERS_COUNT=`echo $(rq info --url $REDASH_REDIS_URL -R | grep workers | grep -oP ^[0-9]+)`
if [ "$ACTIVE_WORKERS_COUNT" < "$WORKERS_COUNT" ]; then
if [ "$ACTIVE_WORKERS_COUNT" -lt "$WORKERS_COUNT" ]; then
echo "$ACTIVE_WORKERS_COUNT workers are active, Exiting"
exit 1
else
Expand Down

0 comments on commit 64c24b7

Please sign in to comment.