Appearance
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).
| Connection | Driver | Default queue | retry_after | Notes |
|---|---|---|---|---|
database | database (jobs table on the mysql_queue DB connection by default) | default | QUEUE_RETRY_AFTER, default 660 | Pinned 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_migration | database (same table) | migration | 10800 | Only for ProcessAssetImportJob (timeout 7200 s). Not a retry mechanism; that job has $tries = 1. |
redis | redis | REDIS_QUEUE or default | 90 | Available, not referenced by any onConnection call. |
sync, beanstalkd, sqs | Laravel defaults | Not referenced in app code. |
Job inventory ​
Asset processing ​
| Job | What handle() does | Tries / timeout | Dispatched by (queue) |
|---|---|---|---|
DAM\AssetUpload | Builds 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 2048M | Api\v1\DigitalAssets\AssetController upload and new-version (high); Api\v1\User\ExternalUserController (high); ProcessAssetImportJob and import:assets-db-to-platform (migration-high) |
DAM\GenerateVideoPreviewJob | Loads 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 s | AssetController (3 places) and ExternalUserController (video-previews); ProcessAssetImportJob and import:assets-db-to-platform (migration-video-previews) |
DAM\RegenerateAssetRenditionsJob | Rebuilds 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 s | dam:regenerate-asset-thumbnails --dispatch (queue from --queue, default medium); inline without --dispatch |
DAM\ConvertAssetsJob | Converts 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. | default | Api\v1\DigitalAssets\AssetController and DAM\v1\Digital\AssetController (medium) |
DAM\AssetApplyWatermark | Generates the watermarked thumbnail (watermark_file) and watermarked original (watermark_original_file) for one asset with DigitalAssets::generateWatermarkFile(). | default | Api\v1\DigitalAssets\AssetController (2 places, high) |
DAM\GenerateAssetWatermark | Same as above for every non-public jpg/jpeg/png asset in one workspace. | default | No dispatcher found in app/ or routes/. The dam:generate-watermark-image command does the same work across all workspaces. |
Import\ProcessAssetImportJob | Migrates 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 10240M | import:dispatch-asset-jobs (database_migration connection, migration queue) |
Downloads and sharing ​
| Job | What handle() does | Tries / timeout | Dispatched by (queue) |
|---|---|---|---|
DAM\DownloadMultipleFilesForDealer | Writes 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\DownloadMultipleFiles | Same row-writing as above without the activity log (is_backend_download = true). | default / 0 | No dispatcher found. |
DAM\UpdateShareAssetsJob | Collects 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 s | Api\v1\DigitalAssets\ShareAssetsController (default queue) |
Search index ​
| Job | What handle() does | Tries / timeout | Dispatched by (queue) |
|---|---|---|---|
ReindexAssetsByIds | Pushes 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 s | CustomFieldController (reindex), DamPermissionController and AssetController (inline handle() or dispatchChunked, medium) |
ReindexAssetTagsByAssetIds | Same pattern for DigitalAssetsTag rows of the given assets (fetch 250, push 500). | 1 / 600 s | AssetController after asset moves (inline or dispatchChunked, medium) |
Notifications and email ​
| Job | What handle() does | Mail sent | Dispatched by (queue) |
|---|---|---|---|
AnnouncementNotification | For 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 AnnouncementEmailJob | Api\v1\Announcement\AnnouncementController (2 places) and publish:scheduled_announcements, all with dispatch(new ...) (default queue) |
DAM\AnnouncementEmailJob | Sends AnnouncementEmail in the workspace mail scope. | AnnouncementEmail | AnnouncementNotification (high) |
DAM\SendDamEmailSystemNotificationJob | Central 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\AddDamNotificationJob | Creates a DamUserNotifications row for the user for every user-level DamNotification setting of the workspace (copies is_email, is_system). | none | UsersController (3), SsoLoginService, Workspace model (medium) |
DAM\AccountActivationLinkJob | Sends DamAccountActivationEmail in the workspace mail scope. | DamAccountActivationEmail | Web\Subscription\UserController (medium, high), Api\v1\DigitalAssets\SubscriptionController (high, 2 places) |
DAM\UserWelcomeEmailJob | Sends UserWelcomeEmail in the workspace mail scope. | UserWelcomeEmail | Api\v1\Auth\AuthController (high) |
DAM\SendUserInvitationEmailJob | Sends SendUserInvitationEmail with sendNow() in the workspace mail scope. | SendUserInvitationEmail | DamInstanceController, app:create-dealer-users (high) |
DAM\SendDealerUserInvitationEmailJob | Sends SendDealerUserInvitationEmail with sendNow() in the workspace mail scope. | SendDealerUserInvitationEmail | DamInstanceController (2), app:create-dealer-users (high) |
DAM\SendFeedBackEmailJob | Sends SendFeedBackEmail to the workspace owner with sendNow() in the workspace mail scope. | SendFeedBackEmail | DAM\v1\Digital\DashboardController (low) |
DAM\SendStorageAnalyticsEmailJob | Sends SendStorageAnalyticsEmail with sendNow() in the workspace mail scope. | SendStorageAnalyticsEmail | AnalyticsController (high) |
DAM\SendDailyMailJob | Sends SendDailyMail in the workspace mail scope. | SendDailyMail | dam:send-daily-mail (medium) |
DAM\SendTuesdayThursdayMailJob | Sends DigitalAssetDetails to a trial user and sets email_send_number = 2. | DigitalAssetDetails | Imported by Web\Subscription\SubscriptionController but never dispatched. |
DAM\SubscriptionCancelEmailJob | Sends subscriptionCancelEmail to the configured admin address (no workspace scope). | subscriptionCancelEmail | Api\v1\DigitalAssets\SubscriptionController (high) |
Account and workspace ​
| Job | What handle() does | Tries / timeout | Dispatched by (queue) |
|---|---|---|---|
DAM\DAMRemoveWorkspaceData | Deletes 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(). | default | Api\v1\DigitalAssets\SubscriptionController (2), dam:SuspendAccount (high). dam:trial-expire defines a removeWorkspaceData() helper that dispatches it, but the helper is never called. |
SyncSsoMetadata | Fetches 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 s | Api\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.