jobs: switch from DelayedJob to GoodJob.
Switch the ActiveJob backend from DelayedJob to GoodJob. Differences: * The job worker is run with `bin/good_job start` instead of `bin/delayed_job`. * Jobs have an 8 hour timeout instead of a 4 hour timeout. * Jobs don't automatically retry on failure. * Finishing jobs are preserved and pruned after 7 days.
This commit is contained in:
@@ -3,13 +3,6 @@
|
||||
# A job that sends notifications about new forum posts to Discord. Spawned by
|
||||
# the {ForumPost} class when a new forum post is created.
|
||||
class DiscordNotificationJob < ApplicationJob
|
||||
retry_on Exception, attempts: 0
|
||||
|
||||
# XXX delayed_job specific
|
||||
def max_attempts
|
||||
1
|
||||
end
|
||||
|
||||
def perform(forum_post:)
|
||||
forum_post.send_discord_notification
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user