docs: add remaining docs for classes in app/logical.

This commit is contained in:
evazion
2021-06-23 20:32:59 -05:00
parent c6855261fe
commit 00ca7526bb
47 changed files with 705 additions and 25 deletions

View File

@@ -1,3 +1,7 @@
# The base class for all background jobs on Danbooru.
#
# @see https://guides.rubyonrails.org/active_job_basics.html
# @see https://github.com/collectiveidea/delayed_job
class ApplicationJob < ActiveJob::Base
queue_as :default
queue_with_priority 0

View File

@@ -1,3 +1,4 @@
# A job that deletes a user's favorites when they delete their account.
class DeleteFavoritesJob < ApplicationJob
queue_as :default
queue_with_priority 20

View File

@@ -1,3 +1,5 @@
# A job that deletes a post's files after it's replaced, or a preprocessed
# upload is never completed.
class DeletePostFilesJob < ApplicationJob
queue_as :default
queue_with_priority 20

View File

@@ -1,3 +1,4 @@
# A job that regenerates a post's images and IQDB when a moderator requests it.
class RegeneratePostJob < ApplicationJob
queue_as :default
queue_with_priority 20

View File

@@ -1,3 +1,5 @@
# A job that performs a mass update or tag nuke operation in a bulk update
# request.
class TagBatchChangeJob < ApplicationJob
queue_as :bulk_update

View File

@@ -1,3 +1,5 @@
# A job that performs a tag rename or alias operation in a bulk update request.
# Jobs in the `bulk_update` queue are processed sequentially.
class TagRenameJob < ApplicationJob
queue_as :bulk_update

View File

@@ -1,3 +1,5 @@
# A job that downloads and generates thumbnails in the background for an image
# uploaded with the upload bookmarklet.
class UploadPreprocessorDelayedStartJob < ApplicationJob
queue_as :default
queue_with_priority(-1)

View File

@@ -1,3 +1,4 @@
# A job that tries to resume a preprocessed image upload.
class UploadServiceDelayedStartJob < ApplicationJob
queue_as :default
queue_with_priority(-1)