Add default config for the Ultimate Cron module

Created on 21 April 2022, about 2 years ago
Updated 22 January 2023, over 1 year 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.69.0 2024