Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aydinhassan/m2-cron-job-modify
Disable cron jobs with configuration
https://github.com/aydinhassan/m2-cron-job-modify
cron magento2 magento2-module
Last synced: 1 day ago
JSON representation
Disable cron jobs with configuration
- Host: GitHub
- URL: https://github.com/aydinhassan/m2-cron-job-modify
- Owner: AydinHassan
- Created: 2020-04-15T16:56:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T19:57:18.000Z (over 4 years ago)
- Last Synced: 2024-04-20T10:22:46.131Z (6 months ago)
- Topics: cron, magento2, magento2-module
- Language: PHP
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Magento 2 Cron Job Modifier
Remove cron jobs or move them to other groups
## Installation
```sh
$ composer require trash-panda/m2-cron-job-modify
$ php bin/magento setup:upgrade
```## Usage
You will need to create a module and add a `cron_modify.xml` file in to the `etc` directory.
### Remove a cron job
To remove a cron job, create a group node and use the name attribute to specify the group. Then specify the jobs to
remove using their job codes inside the `remove_job` node.```xml
job_code_1
job_code_2
```
### Move a cron job in to a different group
This is useful to isolate slow jobs and run them in parallel, or for isolating jobs which can crash, keeping the rest of
the jobs running correctly.To move a cron job, create a group node and use the name attribute to specify the group where the job originally lives.
Then specify the jobs to move using their job codes inside the `move_job` node. Specify the destination group in the
`to_group` attribute.Note: The destination group must already exist (create it using the default method)
```xml
backend_clean_cache
```