format postkeepermanager jobs in job listing
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
module DelayedJobsHelper
|
module DelayedJobsHelper
|
||||||
def print_name(job)
|
def print_name(job)
|
||||||
case job.name
|
case job.name
|
||||||
when "PostKeeperManager.check_and_assign"
|
|
||||||
"<strong>update post tagger</strong>"
|
|
||||||
|
|
||||||
when "Tag.increment_post_counts"
|
when "Tag.increment_post_counts"
|
||||||
"<strong>increment post counts</strong>"
|
"<strong>increment post counts</strong>"
|
||||||
|
|
||||||
@@ -64,6 +61,9 @@ module DelayedJobsHelper
|
|||||||
when "BulkRevert#process"
|
when "BulkRevert#process"
|
||||||
"<strong>bulk revert</strong>"
|
"<strong>bulk revert</strong>"
|
||||||
|
|
||||||
|
when "PostKeeperManager.check_and_update"
|
||||||
|
"<strong>update top tagger</strong>"
|
||||||
|
|
||||||
else
|
else
|
||||||
h(job.name)
|
h(job.name)
|
||||||
end
|
end
|
||||||
@@ -131,8 +131,8 @@ module DelayedJobsHelper
|
|||||||
when "BulkRevert#process"
|
when "BulkRevert#process"
|
||||||
h(job.payload_object.args.join(" "))
|
h(job.payload_object.args.join(" "))
|
||||||
|
|
||||||
else
|
when "PostKeeperManager.check_and_update"
|
||||||
h(job.handler)
|
h(job.payload_object.args[0])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ class Post < ApplicationRecord
|
|||||||
PostKeeperManager.check_and_assign(self, CurrentUser.id, increment_tags)
|
PostKeeperManager.check_and_assign(self, CurrentUser.id, increment_tags)
|
||||||
|
|
||||||
# run this again async to check for race conditions
|
# run this again async to check for race conditions
|
||||||
PostKeeperManager.queue_check(self, CurrentUser.id)
|
PostKeeperManager.queue_check(id, CurrentUser.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user