While looking for better cron management i found elysia_cron and i'm considering implementation of its hook_cronapi.

It's not perfect though it will improve the situation.

Comments

miro_dietiker’s picture

StatusFileSize
new843 bytes

Attached patch adds the API and provides some description to elysia_cron interface.

miro_dietiker’s picture

Status: Active » Needs review

review needed then ;-)

simon georges’s picture

Well, I'm fine with the comments... So, it it's working, go for it ;)

miro_dietiker’s picture

Status: Needs review » Fixed

fixed.

Status: Fixed » Closed (fixed)

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

pillarsdotnet’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new8.51 KB

Don't see why this can't be ported to 7.x-1.x, too.

miro_dietiker’s picture

It was not available by then...

Sure we can commit support for it. Thank you for retriggering.
I also hoped they'd cleanup the API...

miro_dietiker’s picture

Status: Needs review » Fixed

Added the hook. Pushed into repo.

Note i've committed the original D6 patch to the D7 version. It seems still up-to-date.

pillarsdotnet: please don't mix codestyle patches with functional ones.
(I've committed some code cleanups also separately..)

Status: Fixed » Closed (fixed)

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

remaye’s picture

I'm using simplenews 7.x-1.x-dev (2011-juin-12) and Elysia Cron 7.x-1.x-dev (2011-oct.-07)
I tried to set simplenews cron to 5mn (*/5 * * * * right ?) sending one single mail at each time,
but it runs (and correctly send the mail) only when global cron is triggered (1/hour), not each 5mn as expected.
Did I possibly miss something with Elysia cron or is it something wrong with simplenews+elysia_cron integration ?
Mails are correctly sent when Elysia cron module is disable.
Thanks for any advice.

pillarsdotnet’s picture

You also need to configure your system so that Elysia cron gets called at least every five minutes.

remaye’s picture

Thank you for you quick response...
but I don't know where to do that ?
The Elysia settings only show :
- "Run cron on visitor's requests, every..." (that doesn't allow less than 1 h)
- "Time Limit" and "Stuck time"
And one more thing : I'm on a mutualised server so no cron tab... is Elysia cron working then ?

pillarsdotnet’s picture

And one more thing : I'm on a mutualised server so no cron tab... is Elysia cron working then ?

You probably need to submit that question as a "support request" in the Elysia cron issue queue.