Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

Commit fed8b20

Browse files
committed
Stringify params before passing them in ENV vars.
1 parent ee15747 commit fed8b20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

code/queue.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ def run_queue_script!(msg)
351351
ENV["RQ_WRITE"] = "3" # USE THESE INSTEAD
352352
ENV["RQ_READ"] = "4"
353353
ENV["RQ_COUNT"] = msg['count'].to_s
354-
ENV["RQ_PARAM1"] = msg['param1']
355-
ENV["RQ_PARAM2"] = msg['param2']
356-
ENV["RQ_PARAM3"] = msg['param3']
357-
ENV["RQ_PARAM4"] = msg['param4']
358-
ENV["RQ_ORIG_MSG_ID"] = msg['orig_msg_id']
354+
ENV["RQ_PARAM1"] = msg['param1'].to_s
355+
ENV["RQ_PARAM2"] = msg['param2'].to_s
356+
ENV["RQ_PARAM3"] = msg['param3'].to_s
357+
ENV["RQ_PARAM4"] = msg['param4'].to_s
358+
ENV["RQ_ORIG_MSG_ID"] = msg['orig_msg_id'].to_s
359359
ENV["RQ_FORCE_REMOTE"] = "1" if msg['force_remote']
360360

361361
# Set env vars specified in queue config file

0 commit comments

Comments
 (0)