docs add more docs to app/{jobs,logical}.
These were missed in the last commit.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# A job that exports a database table to Google Cloud Storage and to Google
|
||||
# BigQuery. Spawned daily by {DanbooruMaintenance}.
|
||||
#
|
||||
# @see BigqueryExportService
|
||||
class BigqueryExportJob < ApplicationJob
|
||||
retry_on Exception, attempts: 0
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# 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
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# A job that adds a post to IQDB when a new post is uploaded, or when a post is
|
||||
# regenerated. Spawned by the {Post} class.
|
||||
class IqdbAddPostJob < ApplicationJob
|
||||
def perform(post)
|
||||
IqdbClient.new.add_post(post)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# A job that removes a post from IQDB when it is deleted. Spawned by the {Post}
|
||||
# class.
|
||||
class IqdbRemovePostJob < ApplicationJob
|
||||
def perform(post_id)
|
||||
IqdbClient.new.remove(post_id)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# A job that updates a user's saved searches when they do a search for
|
||||
# `search:all` or `search:<label>`.
|
||||
class PopulateSavedSearchJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# A job that processes a single tag alias or implication when a bulk update
|
||||
# request is approved. One job per alias or implication is spawned. Jobs are
|
||||
# processed sequentially in the `bulk_update` queue.
|
||||
class ProcessTagRelationshipJob < ApplicationJob
|
||||
queue_as :bulk_update
|
||||
retry_on Exception, attempts: 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# A job that performs a mass update or tag nuke operation in a bulk update
|
||||
# request.
|
||||
# request. Jobs in the `bulk_update` queue are processed sequentially.
|
||||
class TagBatchChangeJob < ApplicationJob
|
||||
queue_as :bulk_update
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# A job that tries to resume a preprocessed image upload.
|
||||
# A job that tries to resume a preprocessed image upload job.
|
||||
class UploadServiceDelayedStartJob < ApplicationJob
|
||||
queue_as :default
|
||||
queue_with_priority(-1)
|
||||
|
||||
Reference in New Issue
Block a user