Skip to content

Commit

Permalink
Check resque processes instead of calling resque
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Jan 2, 2024
1 parent 1ac8082 commit 0bc1b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/availability_feed/health_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ then
fi

# Check that movie queues are active
queue_count=`resque list | wc -l`
if [ $queue_count -le 1 ]
queue_count=`ps -ax | grep resque | wc -l`
if [ $queue_count -le 10 ]
then
python3 gen_feed.py ../../docroot/status.xml -t "Movie Generation is Down." -d "Movie queue workers are not running"
touch $lockfile
Expand Down

0 comments on commit 0bc1b5a

Please sign in to comment.