123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- Scheduler.create_if_not_exists(
- name: __('Process pending tickets.'),
- method: 'Ticket.process_pending',
- period: 15.minutes,
- prio: 1,
- active: true,
- )
- Scheduler.create_if_not_exists(
- name: __('Process ticket escalations.'),
- method: 'Ticket.process_escalation',
- period: 5.minutes,
- prio: 1,
- active: true,
- )
- Scheduler.create_if_not_exists(
- name: __('Process automatic ticket unassignments.'),
- method: 'Ticket.process_auto_unassign',
- period: 10.minutes,
- prio: 1,
- active: true,
- )
- Scheduler.create_if_not_exists(
- name: __('Check channels.'),
- method: 'Channel.fetch',
- period: 30.seconds,
- prio: 1,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __("Check 'Channel' streams."),
- method: 'Channel.stream',
- period: 60.seconds,
- prio: 1,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Execute planned jobs.'),
- method: 'Job.run',
- period: 5.minutes,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Clean up expired sessions.'),
- method: 'SessionHelper.cleanup_expired',
- period: 60 * 60 * 12,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Delete old activity stream entries.'),
- method: 'ActivityStream.cleanup',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __("Delete old 'RecentView' entries."),
- method: 'RecentView.cleanup',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Delete old online notification entries.'),
- method: 'OnlineNotification.cleanup',
- period: 2.hours,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Delete old token entries.'),
- method: 'Token.cleanup',
- period: 30.days,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Close chat sessions where participants are offline.'),
- method: 'Chat.cleanup_close',
- period: 15.minutes,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Clean up closed sessions.'),
- method: 'Chat.cleanup',
- period: 5.days,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Clean up ActiveJob locks.'),
- method: 'ActiveJobLockCleanupJob.perform_now',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Clean up dead sessions.'),
- method: 'SessionTimeoutJob.perform_now',
- period: 1.hour,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Sync calendars with iCal feeds.'),
- method: 'Calendar.sync',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Generate user-based stats.'),
- method: 'Stats.generate',
- period: 11.minutes,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Delete old stats store entries.'),
- method: 'StatsStore.cleanup',
- period: 31.days,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __("Clean up 'HttpLog'."),
- method: 'HttpLog.cleanup',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __("Clean up 'Cti::Log'."),
- method: 'Cti::Log.cleanup',
- period: 1.month,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __("Clean up 'DataPrivacyTask'."),
- method: 'DataPrivacyTask.cleanup',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_or_update(
- name: __('Delete obsolete classic IMAP backup.'),
- method: 'ImapAuthenticationMigrationCleanupJob.perform_now',
- period: 1.day,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Execute import jobs.'),
- method: 'ImportJob.start_registered',
- period: 1.hour,
- prio: 1,
- active: true,
- updated_by_id: 1,
- created_by_id: 1
- )
- Scheduler.create_if_not_exists(
- name: __('Handle data privacy tasks.'),
- method: 'DataPrivacyTaskJob.perform_now',
- period: 10.minutes,
- last_run: Time.zone.now,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Delete old upload cache entries.'),
- method: 'UploadCacheCleanupJob.perform_now',
- period: 1.month,
- prio: 2,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Clean up cache.'),
- method: 'CacheClearJob.perform_now',
- period: 10.minutes,
- prio: 2,
- active: true,
- timeplan: {
- 'days' => {
- 'Mon' => true,
- 'Tue' => true,
- 'Wed' => true,
- 'Thu' => true,
- 'Fri' => true,
- 'Sat' => true,
- 'Sun' => true
- },
- 'hours' => {
- '23' => true
- },
- 'minutes' => {
- '0' => true
- }
- },
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Update exchange oauth 2 token.'),
- method: 'ExternalCredential::Exchange.refresh_token',
- period: 10.minutes,
- prio: 1,
- active: true,
- updated_by_id: 1,
- created_by_id: 1,
- )
- Scheduler.create_if_not_exists(
- name: __('Clean up mobile taskbars.'),
- method: 'TaskbarCleanupJob.perform_now',
- period: 10.minutes,
- prio: 2,
- active: true,
- timeplan: {
- 'days' => {
- 'Mon' => true,
- 'Tue' => true,
- 'Wed' => true,
- 'Thu' => true,
- 'Fri' => true,
- 'Sat' => true,
- 'Sun' => true
- },
- 'hours' => {
- '1' => true
- },
- 'minutes' => {
- '0' => true
- }
- },
- updated_by_id: 1,
- created_by_id: 1,
- )
|