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.

Comments

psha’s picture

Priority: Major » Normal
gotheric’s picture

Status: Needs work » Postponed

I 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...

n8nl’s picture

Issue summary: View changes

'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).

kala4ek’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Assigned: Unassigned » kala4ek
Status: Postponed » Active
andrey.troeglazov’s picture

Assigned: kala4ek » andrey.troeglazov
andrey.troeglazov’s picture

Hello, here is the patch for the issue resolving.
Regards.

andrey.troeglazov’s picture

Assigned: andrey.troeglazov » Unassigned
Status: Active » Needs review
kala4ek’s picture

Status: Needs review » Needs work

Why 256, is it maximum possible length for cron rule?
Also, need to update hook schema.

And please, re-creare patch (use git diff).

andrey.troeglazov’s picture

Hello,
Some of os have a limit to 256 char.
Here is the new patch.
Hook schema was also updated. Please recheck.
Kind regards.

andrey.troeglazov’s picture

Status: Needs work » Needs review

kala4ek’s picture

Status: Needs review » Fixed
joelpittet’s picture

I 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...

kala4ek’s picture

We would follow it

joelpittet’s picture

Status: Fixed » Closed (fixed)

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