Skip to content

Queued Jobs ​

Overview ​

Every class in app/Jobs implements ShouldQueue and uses the standard Dispatchable, InteractsWithQueue, Queueable traits (most also use SerializesModels). There are 27 job classes: 5 in app/Jobs, 21 in app/Jobs/DAM and 1 in app/Jobs/Import.

No job sets $queue or $connection on the class. The queue is always chosen by the caller with ->onQueue(...), so the same job can land on different queues depending on who dispatches it. Queue names used in the code are high, medium, low, video-previews, migration-high, migration-video-previews and migration. Jobs dispatched without onQueue go to the connection's default queue.

No job implements ShouldBeUnique, ShouldBeEncrypted or job middleware. AccountActivationLinkJob and AssetApplyWatermark import the ShouldBeUnique contract but do not implement it.

Queue connections ​

Defined in config/queue.php. The default connection comes from QUEUE_CONNECTION (falls back to sync).

ConnectionDriverDefault queueretry_afterNotes
databasedatabase (jobs table on the mysql_queue DB connection by default)defaultQUEUE_RETRY_AFTER, default 660Pinned to the primary-only DB connection so job claims never read a lagging replica. retry_after must stay above the longest job $timeout (600 s).
database_migrationdatabase (same table)migration10800Only for ProcessAssetImportJob (timeout 7200 s). Not a retry mechanism; that job has $tries = 1.
redisredisREDIS_QUEUE or default90Available, not referenced by any onConnection call.
sync, beanstalkd, sqsLaravel defaultsNot referenced in app code.

Job inventory ​

Asset processing ​

JobWhat handle() doesTries / timeoutDispatched by (queue)
DAM\AssetUploadBuilds renditions for a freshly uploaded asset. For images (png, jpg, jpeg, webp, heic, heif) it reads EXIF orientation, converts HEIC/HEIF to JPEG (Imagick, falling back to heif-convert), normalises colour to sRGB, writes a WebP thumbnail ({slug}/digital_assets/thumbnail/, public) and a WebP compressed copy ({slug}/digital_assets/compress/, private). For types in FILE_PREVIEW_SUPPORT_FORMAT it calls the FilePreviews API; on success it builds the thumbnail/compress files from the preview image (videos get a 550x310 frame grab). Saves thumbnail_file, compress_file, file_preview_id, file_preview_status on DigitalAssets and AssetsVersion, then reindexes the asset in Typesense. On a FilePreviews HTTP 429 it calls release() with exponential backoff (30 s doubling, max 300 s, plus jitter) until attempts run out, then saves without a preview.5 / 600 s, memory_limit 2048MApi\v1\DigitalAssets\AssetController upload and new-version (high); Api\v1\User\ExternalUserController (high); ProcessAssetImportJob and import:assets-db-to-platform (migration-high)
DAM\GenerateVideoPreviewJobLoads a non-deleted video asset, calls DigitalAssets::generateFileFromVideo(), uploads the result to {slug}/digital_assets/video_preview/{file_name} (private), sets video_preview on the asset and its version, reindexes in Typesense.default / 600 sAssetController (3 places) and ExternalUserController (video-previews); ProcessAssetImportJob and import:assets-db-to-platform (migration-video-previews)
DAM\RegenerateAssetRenditionsJobRebuilds the thumbnail (max 550x310 or THUMBNAIL_* config) and compressed copy (max 1500x1500 or COMPRESS_* config) from the original on S3, replacing them in place. Fills width/height for HEIC/HEIF when missing. Reindexes in Typesense. The static regenerateAsset() is also called inline. Throws when the source is missing so the failure is visible.3 / 300 sdam:regenerate-asset-thumbnails --dispatch (queue from --queue, default medium); inline without --dispatch
DAM\ConvertAssetsJobConverts an asset with DigitalAssets::convertFile() to the requested type, uploads it to {slug}/digital_assets/convert-files/, creates a 4-day pre-signed URL, and emails the requester SendConvertAssetsEmailJob inside the workspace mail scope. For admin users it also bumps ProjectUserNotificationBadges.dam_badges_count, broadcasts ProjectUserNotificationBadgesEvent (when the custom_notification_management feature is on) and writes a DamSystemNotifications row. Sets DamAssetsConvert.status to success or failed.defaultApi\v1\DigitalAssets\AssetController and DAM\v1\Digital\AssetController (medium)
DAM\AssetApplyWatermarkGenerates the watermarked thumbnail (watermark_file) and watermarked original (watermark_original_file) for one asset with DigitalAssets::generateWatermarkFile().defaultApi\v1\DigitalAssets\AssetController (2 places, high)
DAM\GenerateAssetWatermarkSame as above for every non-public jpg/jpeg/png asset in one workspace.defaultNo dispatcher found in app/ or routes/. The dam:generate-watermark-image command does the same work across all workspaces.
Import\ProcessAssetImportJobMigrates one ImportData row. First it atomically flips migration_status from dispatched/pending to working (this is the claim, so a row dispatched twice is processed once). Streams the source file to local disk, uploads it to S3 (multipart for large files, MIME detected from bytes), creates DigitalAssets, AssetsVersion, tags and custom field values in a transaction with Scout muted, then dispatches GenerateVideoPreviewJob (videos) and AssetUpload, reindexes the asset and its tags, and marks the row success or failed. failed() marks the row failed.1 / 7200 s, memory_limit 10240Mimport:dispatch-asset-jobs (database_migration connection, migration queue)

Downloads and sharing ​

JobWhat handle() doesTries / timeoutDispatched by (queue)
DAM\DownloadMultipleFilesForDealerWrites a DigitalAssetsDownload row per requested asset with a shared zip_file_name (dam-download-{date}-{userId}.zip), and logs portal-user activity per folder. It does not build the zip; see the zip flow below.default / 0 (no limit)DAM\v1\Digital\DashboardController when the selection is over 2 GB (high)
DAM\DownloadMultipleFilesSame row-writing as above without the activity log (is_backend_download = true).default / 0No dispatcher found.
DAM\UpdateShareAssetsJobCollects the asset IDs behind a share link (explicit assets_id, a collection, or a folder tree walked level by level) and appends the share ID to digital_assets.share_id in chunks of 1000 with one UPDATE ... CASE per chunk. failed() logs the error.3 / 600 sApi\v1\DigitalAssets\ShareAssetsController (default queue)

Search index ​

JobWhat handle() doesTries / timeoutDispatched by (queue)
ReindexAssetsByIdsPushes the given assets of one workspace to Typesense in batches of 250, reading from mysql_primary when configured. Static reindex() runs inline for up to 2000 IDs and falls back to queued chunks on error or above the limit; dispatchChunked() queues 500 IDs per job.1 / 600 sCustomFieldController (reindex), DamPermissionController and AssetController (inline handle() or dispatchChunked, medium)
ReindexAssetTagsByAssetIdsSame pattern for DigitalAssetsTag rows of the given assets (fetch 250, push 500).1 / 600 sAssetController after asset moves (inline or dispatchChunked, medium)

Notifications and email ​

JobWhat handle() doesMail sentDispatched by (queue)
AnnouncementNotificationFor a published, non-draft announcement, resolves recipients (all workspace users of the module, plus active portal users for module 2, or the selected AnnouncementUsers), writes AnnouncementSystmNotifications, increments badge counts, broadcasts ProjectUserNotificationBadgesEvent (admins) or DAMFrontendAnnouncement plus an FCM push (portal users), and dispatches AnnouncementEmailJob per recipient.via AnnouncementEmailJobApi\v1\Announcement\AnnouncementController (2 places) and publish:scheduled_announcements, all with dispatch(new ...) (default queue)
DAM\AnnouncementEmailJobSends AnnouncementEmail in the workspace mail scope.AnnouncementEmailAnnouncementNotification (high)
DAM\SendDamEmailSystemNotificationJobCentral DAM notification fan-out. Loads the workspace (only when dam_notification = 1) and the DamNotification setting for the slug, applies workspace mail config, works out recipients (admins and portal users), filters assets and folders per recipient permission, sends the email through DamNotification::sendEmailNotification(), increments badges, broadcasts ProjectUserNotificationBadgesEvent and writes DamSystemNotifications. Clears the mail context in finally.One of the notification mailables (see Mail)CategoryController, DamCollectionController (4), AssetController (3), DAM\v1\Digital\DamCollectionController, DAM\v1\Digital\ShareAssetsController (medium); DamInstanceController (high)
DAM\AddDamNotificationJobCreates a DamUserNotifications row for the user for every user-level DamNotification setting of the workspace (copies is_email, is_system).noneUsersController (3), SsoLoginService, Workspace model (medium)
DAM\AccountActivationLinkJobSends DamAccountActivationEmail in the workspace mail scope.DamAccountActivationEmailWeb\Subscription\UserController (medium, high), Api\v1\DigitalAssets\SubscriptionController (high, 2 places)
DAM\UserWelcomeEmailJobSends UserWelcomeEmail in the workspace mail scope.UserWelcomeEmailApi\v1\Auth\AuthController (high)
DAM\SendUserInvitationEmailJobSends SendUserInvitationEmail with sendNow() in the workspace mail scope.SendUserInvitationEmailDamInstanceController, app:create-dealer-users (high)
DAM\SendDealerUserInvitationEmailJobSends SendDealerUserInvitationEmail with sendNow() in the workspace mail scope.SendDealerUserInvitationEmailDamInstanceController (2), app:create-dealer-users (high)
DAM\SendFeedBackEmailJobSends SendFeedBackEmail to the workspace owner with sendNow() in the workspace mail scope.SendFeedBackEmailDAM\v1\Digital\DashboardController (low)
DAM\SendStorageAnalyticsEmailJobSends SendStorageAnalyticsEmail with sendNow() in the workspace mail scope.SendStorageAnalyticsEmailAnalyticsController (high)
DAM\SendDailyMailJobSends SendDailyMail in the workspace mail scope.SendDailyMaildam:send-daily-mail (medium)
DAM\SendTuesdayThursdayMailJobSends DigitalAssetDetails to a trial user and sets email_send_number = 2.DigitalAssetDetailsImported by Web\Subscription\SubscriptionController but never dispatched.
DAM\SubscriptionCancelEmailJobSends subscriptionCancelEmail to the configured admin address (no workspace scope).subscriptionCancelEmailApi\v1\DigitalAssets\SubscriptionController (high)

Account and workspace ​

JobWhat handle() doesTries / timeoutDispatched by (queue)
DAM\DAMRemoveWorkspaceDataDeletes the DAM data of a workspace: assets, ACL, order settings and orders, folders, watermark settings, collections, external apps, groups, search history, system notifications, tiles, addresses, portal user activity, share links, portal banners and portal users, DAM announcements, and every workspace user and admin role except the owner. Several tables use forceDelete().defaultApi\v1\DigitalAssets\SubscriptionController (2), dam:SuspendAccount (high). dam:trial-expire defines a removeWorkspaceData() helper that dispatches it, but the helper is never called.
SyncSsoMetadataFetches SAML IdP metadata (from the stored URL, else the uploaded XML), parses entity ID, SSO URL and certificates through SamlService, detects the provider, saves sync status and message on WorkspaceSsoConnection and records an SsoLoginEvent (sync_ok or sync_failed).1 / 90 sApi\v1\Workspace\SsoSettingsController (medium)

Asset upload processing ​

AssetController::uploadFile() saves the asset and version synchronously, reindexes it in Typesense inline (with scout.queue switched off for the call), and hands the slow work to two jobs.

Asset import pipeline ​

Bulk migrations from another DAM run through a separate connection so they never block normal uploads.

Large zip download ​

Portal downloads up to 2 GB are zipped in the request. Above that the request only records the download and returns "Zip file sent in your email address."; the zip is built later by the CreateAssetsZipFile command.

CreateAssetsZipFile is not in the schedule in app/Console/Kernel.php, so the zip is only built when something else runs that command. Its zipCreate() also reads $user->name and $user->email without assigning $user in that method, so the email step fails as written. See Console Commands.