Skip to content

Commit

Permalink
Use queue which corresponds to the current version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzdosilovic committed Jan 6, 2020
1 parent a3a24c5 commit dd6b62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/isolate_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class IsolateJob < ApplicationJob
queue_as :default
queue_as ENV["JUDGE0_VERSION"].to_sym

STDIN_FILE_NAME = "stdin.txt"
STDOUT_FILE_NAME = "stdout.txt"
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-workers
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trap exit_gracefully SIGTERM SIGINT
mkdir -p tmp/pids &> /dev/null
while [[ $run_resque -eq 1 ]]; do
rm -rf tmp/pids/resque.pid &> /dev/null
COUNT=${COUNT:-1} rails resque:workers &
COUNT=${COUNT:-1} QUEUE=$JUDGE0_VERSION rails resque:workers &
resque_pid=$!
while ps -p $resque_pid > /dev/null; do sleep 1s; done
done

0 comments on commit dd6b62d

Please sign in to comment.