select limit for good_job

This commit is contained in:
Dylan Knutson
2023-03-27 19:13:30 +09:00
parent 44662be0e4
commit 3f349bb000

View File

@@ -32,7 +32,7 @@ task :good_job do
ENV["GOOD_JOB_QUEUES"] = [
"manual:4",
"static_file:4",
"+static_file,fa_post:2",
"+static_file,fa_post:4",
"+fa_user_page,fa_user_gallery:2",
"-static_file,fa_post,manual,fa_user_page,fa_user_gallery,twitter_timeline_tweets:2",
].join(";")
@@ -40,7 +40,7 @@ task :good_job do
proxy = ENV["proxy"]
raise("'proxy' must be set") unless proxy
raise("'proxy' must be one of #{proxies}") unless proxies.include?(proxy)
cmd = "bundle exec good_job"
cmd = "bundle exec good_job --queue-select-limit=256"
puts "$> #{cmd}"
exec(cmd)
end