Add default config for the Ultimate Cron module

Created on 21 April 2022, over 2 years ago
Updated 22 January 2023, almost 2 years ago

Problem/Motivation

Currently all cron jobs are scheduled to run every 15 min.
We need to add default config files for the cron jobs.

Steps to reproduce

1- install Varbase
2- Open the cron page admin/config/system/cron/jobs

Proposed resolution

Have a basic default configs for the following Ultimate Cron starter values:

  1. captcha_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  2. content_lock_timeout_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ */3 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  3. field_cron ( Purges deleted Field API data )
    scheduler:
      id: simple
      configuration:
        rules:
          - '*/30+@ * * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  4. file_cron ( Deletes temporary files )
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  5. honeypot_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * 0'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  6. layout_builder_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ */3 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  7. node_cron ( Updates search rankings for nodes )
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ * * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  8. password_policy_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ * * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  9. persistent_login_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ * * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  10. redirect_404
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  11. scheduler_cron
    scheduler:
      id: simple
    launcher:
      id: serial
    logger:
      id: database
    
  12. simple_sitemap_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  13. system_cron
    scheduler:
      id: simple
    launcher:
      id: serial
    logger:
      id: database
    
  14. ultimate_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ */3 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  15. update_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ */6 * * *'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    
  16. webform_cron
    scheduler:
      id: simple
      configuration:
        rules:
          - '0+@ 0 * * 0'
    launcher:
      id: serial
      configuration:
        timeouts:
          lock_timeout: 3600
        launcher:
          thread: 0
    logger:
      id: database
      configuration:
        method: '3'
        expire: 1209600
        retain: 1000
    

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.11 , varbase_core-9.0.46

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Feature request
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan ahmad abbad Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024