I wrote a module that works with a cron schedule service that runs on Google Apps Engine. You have to set up a scheduled request of your cron.php on his GAE service and his service expects an auth code in response. So I just implemented hook_cron and printed out the auth code.
Right now, it's a separate module, but I could re-work it as another option within Poormanscron if there's any interest.
Here's a link to the GAE Scheduler service if anyone wants to check it out.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | gaecron.zip | 1.55 KB | skor |
| #4 | gaecron.zip | 1.51 KB | skor |
| #3 | gaecron.zip | 1.41 KB | skor |
Comments
Comment #1
skor commentedGrr. botched the link. It's http://schedulerservice.appspot.com/
Comment #2
avpadernoComment #3
skor commentedHere it is as a separate module called gaecron. In this form, if a user were to enable it in addition to the existing poormanscron, the gaecron would get triggered by a page load, and print out the auth code in the middle of a normal html page. So, we could put lots of warnings about not enabling them both together, or we could mod the existing poormanscron and put an exception so it wouldn't invoke gaecron.
@Uwe, I'd like to hear your thoughts about packaging this with your module. Good idea? Not worth your time? I only wrote this because:
Comment #4
skor commentedMinor mods after running the coder module...
Comment #5
skor commentedJust curious who's maintianing this module. I see releases from Uwe, Rob Loach, and ax, but kiam and gpk
Happy for feedback from any of you.
Comment #6
skor commentedFixed .info file so shows up as part of poomanscron.
Comment #7
avpadernoThe list of the maintainers is linked to the project page.
Comment #8
skor commentedThanks. I hadn't noticed that before.
Comment #9
robloachVery interesting. So the scheduler calls cron.php, receives the authentication code, and then this allows it to call it next time? What if we just added a "Output after cron run" option in Poormanscron?
Comment #10
skor commentedI think you'd want some additional logic to prevent the output if the cron.php if it was triggered by a user page load. I'd be afraid of writing the code out in the middle of a user's page view.
Comment #11
skor commentedI guess I didn't really answer you first question. Yes. the scheduler will request the page the first time but if it gets a successful page load without its confirmation code, it will disable future page request until you go back and re-enable it.
I guess this is sort of an alternative to the current method, though it does introduce an external dependency. I just didn't want to throw out a separate module and cause confusion.
Comment #12
skor commentedJust checking on if this should be a)merged in poormanscron, b) separate module, c) dropped from lack of interest.
No rush, I'm actually a bit busy now, but I stumble on it again once in a while.
Comment #13
dave reidThis isn't appropriate for poormanscron. You should just implement this as your own small custom module, seeing as no one else has requested this type of feature and it is a very specific feature request.
Comment #14
dave reidPossibly couldn't you also use something like http://drupal.org/project/site_verify ?