I've experienced an irritating issue. Sometimes i want to be more flexible with the cron settings.
When i try to set a longer rule like: '6,11,16,21,26,31,36,41,46,51,56 * * * *' it cannot be fit within the 32 characters limit of the rule column.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | elysia-cron-change-length-property-1418506-9.patch | 836 bytes | andrey.troeglazov |
| #6 | elysia-cron-change-length-property-1418506-6.patch | 714 bytes | andrey.troeglazov |
Comments
Comment #1
psha commentedComment #2
gotheric commentedI understand the problem and i'll think about enlarging the field.
However, consider enlarging the field in your database with a manual db operation. It's quite simple (if your familiar with SQL) and it will solve your problem...
Comment #3
n8nl commented'6-59/5 * * * *' is shorter and should do the same thing as '6,11,16,21,26,31,36,41,46,51,56 * * * *' - provided it's valid syntax for Elysia Cron (I haven't tested).
Comment #4
kala4ekComment #5
andrey.troeglazov commentedComment #6
andrey.troeglazov commentedHello, here is the patch for the issue resolving.
Regards.
Comment #7
andrey.troeglazov commentedComment #8
kala4ekWhy 256, is it maximum possible length for cron rule?
Also, need to update hook schema.
And please, re-creare patch (use
git diff).Comment #9
andrey.troeglazov commentedHello,
Some of os have a limit to 256 char.
Here is the new patch.
Hook schema was also updated. Please recheck.
Kind regards.
Comment #10
andrey.troeglazov commentedComment #12
kala4ekComment #13
joelpittetI know the previous hooks were _1, _2, but shouldn't this really follow the API of hook_update_7200?
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
Comment #14
kala4ekWe would follow it
Comment #15
joelpittetOk cool, made a follow-up here #2759775: Follow the update hook API of hook_update_72xx