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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Ahmad Abbad created an issue. See original summary.

ahmad abbad’s picture

Status: Active » Needs review
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
rajab natshah’s picture

Title: Add default config for ultimate cron » Add default config for the Ultimate Cron module
rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase_core-9.0.46

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.0.11

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.