docs add more docs to app/{jobs,logical}.

These were missed in the last commit.
This commit is contained in:
evazion
2021-06-27 18:12:58 -05:00
parent fef5f238a5
commit ad4c75eb1a
16 changed files with 36 additions and 11 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)