2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2017-04-26 11:28:32 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Process pending tickets.'),
|
2017-04-26 11:28:32 +00:00
|
|
|
method: 'Ticket.process_pending',
|
|
|
|
period: 15.minutes,
|
2018-12-19 17:31:51 +00:00
|
|
|
prio: 1,
|
2017-04-26 11:28:32 +00:00
|
|
|
active: true,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Process ticket escalations.'),
|
2017-04-26 11:28:32 +00:00
|
|
|
method: 'Ticket.process_escalation',
|
|
|
|
period: 5.minutes,
|
2018-12-19 17:31:51 +00:00
|
|
|
prio: 1,
|
2017-04-26 11:28:32 +00:00
|
|
|
active: true,
|
|
|
|
)
|
2017-08-31 04:51:17 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Process automatic ticket unassignments.'),
|
2017-08-31 04:51:17 +00:00
|
|
|
method: 'Ticket.process_auto_unassign',
|
|
|
|
period: 10.minutes,
|
2018-12-19 17:31:51 +00:00
|
|
|
prio: 1,
|
2017-08-31 04:51:17 +00:00
|
|
|
active: true,
|
|
|
|
)
|
2017-04-26 11:28:32 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Check channels.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Channel.fetch',
|
|
|
|
period: 30.seconds,
|
|
|
|
prio: 1,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __("Check 'Channel' streams."),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Channel.stream',
|
|
|
|
period: 60.seconds,
|
|
|
|
prio: 1,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __("Generate 'Session' data."),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Sessions.jobs',
|
|
|
|
period: 60.seconds,
|
|
|
|
prio: 1,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Execute planned jobs.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Job.run',
|
|
|
|
period: 5.minutes,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Clean up expired sessions.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'SessionHelper.cleanup_expired',
|
|
|
|
period: 60 * 60 * 12,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete old activity stream entries.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'ActivityStream.cleanup',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __("Delete old 'RecentView' entries."),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'RecentView.cleanup',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete old online notification entries.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'OnlineNotification.cleanup',
|
|
|
|
period: 2.hours,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete old token entries.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Token.cleanup',
|
|
|
|
period: 30.days,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Close chat sessions where participants are offline.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Chat.cleanup_close',
|
|
|
|
period: 15.minutes,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Clean up closed sessions.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Chat.cleanup',
|
|
|
|
period: 5.days,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2019-12-04 14:29:43 +00:00
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Clean up ActiveJob locks.'),
|
2019-12-04 14:29:43 +00:00
|
|
|
method: 'ActiveJobLockCleanupJob.perform_now',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2021-04-22 07:17:01 +00:00
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Clean up dead sessions.'),
|
2021-04-22 07:17:01 +00:00
|
|
|
method: 'SessionTimeoutJob.perform_now',
|
2021-04-26 12:23:00 +00:00
|
|
|
period: 1.hour,
|
2021-04-22 07:17:01 +00:00
|
|
|
prio: 2,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2017-04-26 11:28:32 +00:00
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Sync calendars with iCal feeds.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Calendar.sync',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Generate user-based stats.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Stats.generate',
|
|
|
|
period: 11.minutes,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_or_update(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete old stats store entries.'),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'StatsStore.cleanup',
|
|
|
|
period: 31.days,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __("Clean up 'HttpLog'."),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'HttpLog.cleanup',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2017-07-14 15:20:48 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __("Clean up 'Cti::Log.'"),
|
2018-12-19 17:31:51 +00:00
|
|
|
method: 'Cti::Log.cleanup',
|
|
|
|
period: 1.month,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
2017-07-14 15:20:48 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2020-05-28 13:28:07 +00:00
|
|
|
Scheduler.create_or_update(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete obsolete classic IMAP backup.'),
|
2020-05-28 13:28:07 +00:00
|
|
|
method: 'ImapAuthenticationMigrationCleanupJob.perform_now',
|
|
|
|
period: 1.day,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2017-04-26 11:28:32 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
name: __('Execute import jobs.'),
|
2017-04-26 11:28:32 +00:00
|
|
|
method: 'ImportJob.start_registered',
|
|
|
|
period: 1.hour,
|
|
|
|
prio: 1,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1
|
|
|
|
)
|
2020-09-08 15:06:23 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Handle data privacy tasks.'),
|
2020-09-08 15:06:23 +00:00
|
|
|
method: 'DataPrivacyTaskJob.perform_now',
|
|
|
|
period: 10.minutes,
|
|
|
|
last_run: Time.zone.now,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|
2021-07-22 12:35:13 +00:00
|
|
|
Scheduler.create_if_not_exists(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Delete old upload cache entries.'),
|
2021-07-22 12:35:13 +00:00
|
|
|
method: 'UploadCacheCleanupJob.perform_now',
|
|
|
|
period: 1.month,
|
|
|
|
prio: 2,
|
|
|
|
active: true,
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1,
|
|
|
|
)
|