All Categories
  • 1st Steps
  • Authentication
  • Branding
  • Changelogs
  • Collaboration
  • Compliance
  • Customization
  • Desktop Client
  • External Storage
  • Frequently Asked Questions
  • Installation
  • Migrations
  • Mobile Clients
  • Nextcloud Context Chat
  • Nextcloud Flow (Windmill integration)
  • Nextcloud Talk
  • Operations
  • Partner Products
  • Roundcubemail
  • Scalability
  • Security
  • How often do cron background jobs run?

    The schedule for background jobs executed by the cron is configured by each job. Some jobs are time-sensitive and need to be executed as soon as possible, while time insensitive jobs can wait and are preferably executed in the maintenance window configured by maintenance_window_start in the config.php. By default, the maintenance window is disabled, but it is advised to configure this to match the time window when the instance has the least amount of traffic/users to allow time sensitive jobs to run as soon as possible.

    Job class Interval Time sensitive
    \OCA\AdminAudit\BackgroundJobs\Rotate 3h Yes
    \OCA\ContactsInteraction\BackgroundJob\CleanupJob 24h No
    \OCA\DAV\BackgroundJob\CalendarRetentionJob 6h Yes
    \OCA\DAV\BackgroundJob\CleanupDirectLinksJob 24h No
    \OCA\DAV\BackgroundJob\CleanupInvitationTokenJob 24h No
    \OCA\DAV\BackgroundJob\EventReminderJob 5m Yes
    \OCA\DAV\BackgroundJob\PruneOutdatedSyncTokensJob 24h No
    \OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob 1h Yes
    \OCA\DAV\BackgroundJob\UploadCleanup 24h No
    \OCA\DAV\BackgroundJob\UserStatusAutomation As soon as possible Yes
    \OCA\Federation\SyncJob 24h No
    \OCA\FilesReminders\BackgroundJob\CleanUpReminders 24h No
    \OCA\Files\BackgroundJob\CleanupDirectEditingTokens 15m Yes
    \OCA\Files\BackgroundJob\CleanupFileLocks 5m Yes
    \OCA\Files\BackgroundJob\DeleteExpiredOpenLocalEditor 12h No
    \OCA\Files\BackgroundJob\DeleteOrphanedItems 1h Yes
    \OCA\Files\BackgroundJob\ScanFiles 10m Yes
    \OCA\Files_External\BackgroundJob\CredentialsCleanup 24h No
    \OCA\Files_Sharing\BackgroundJob\FederatedSharesDiscoverJob 24h No
    \OCA\Files_Sharing\DeleteOrphanedSharesJob 24h No
    \OCA\Files_Sharing\ExpireSharesJob 24h No
    \OCA\Files_Sharing\SharesReminderJob 1h Yes
    \OCA\Files_Trashbin\BackgroundJob\ExpireTrash 30m Yes
    \OCA\Files_Versions\BackgroundJob\ExpireVersions 30m Yes
    \OCA\OAuth2\BackgroundJob\CleanupExpiredAuthorizationCode 30d No
    \OCA\TwoFactorBackupCodes\BackgroundJob\RememberBackupCodesJob 14d No
    \OCA\UpdateNotification\BackgroundJob\ResetToken 10m Yes
    \OCA\UpdateNotification\BackgroundJob\UpdateAvailableNotifications 24h No
    \OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob As soon as possible Yes
    \OCA\User_LDAP\Jobs\CleanUp 1h (configurable) Yes
    \OCA\User_LDAP\Jobs\Sync 30m-12h (automatically adjusts itself) Yes
    \OCA\User_LDAP\Jobs\UpdateGroups 1h (configurable) Yes
    \OCA\WorkflowEngine\BackgroundJobs\Rotate 3h Yes
    \OC\Authentication\Token\TokenCleanupJob 24h No
    \OC\Core\BackgroundJobs\CleanupLoginFlowV2 1h Yes
    \OC\Core\BackgroundJobs\GenerateMetadataJob 24h No
    \OC\Migration\BackgroundRepair 15m Yes
    \OC\Preview\BackgroundCleanupJob 1h No
    \OC\Security\Bruteforce\CleanupJob 24h No
    \OC\TaskProcessing\RemoveOldTasksBackgroundJob 24h No
    \OC\TextProcessing\RemoveOldTasksBackgroundJob 24h No
    \OC\TextToImage\RemoveOldTasksBackgroundJob 24h No
    \OC\User\BackgroundJobs\CleanupDeletedUsers 24h No

    Please note this is not a conclusive list of all cron background jobs as many apps also configure their own.