Skip to content

Commit af9d8dd

Browse files
Define job polling interval in env
Currently, the application uses an env variable to define the solid cable polling interval, in order to allow deploying instances to tweak some platform behaviors without code changes. This proposal is to adopt the same strategy for the job queue polling interval. The default value (if no env variable is defined) is the same as it is now - 0.1 seconds - but if a deploying instance needs to run a little slower, this will enable that.
1 parent 88f01ed commit af9d8dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/queue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default: &default
77
- queues: "*"
88
threads: 3
99
processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
10-
polling_interval: 0.1
10+
polling_interval: <%= ENV.fetch("JOB_POLLING_INTERVAL", 0.1) %>
1111

1212
development:
1313
<<: *default

0 commit comments

Comments
 (0)