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.

CommentFileSizeAuthor
#6 gaecron.zip1.55 KBskor
#4 gaecron.zip1.51 KBskor
#3 gaecron.zip1.41 KBskor

Comments

skor’s picture

Grr. botched the link. It's http://schedulerservice.appspot.com/

avpaderno’s picture

Title: Google apps engine scheduler? » Integration with Google App Engine scheduler
skor’s picture

Status: Active » Needs review
StatusFileSize
new1.41 KB

Here 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:

  1. I didn't read very closely how your module worked. I thought it counted page loads and wanted something more time oriented
  2. I wanted to go through a simple module development for my own education.
skor’s picture

StatusFileSize
new1.51 KB

Minor mods after running the coder module...

skor’s picture

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

skor’s picture

StatusFileSize
new1.55 KB

Fixed .info file so shows up as part of poomanscron.

avpaderno’s picture

Just curious who's maintianing this module.

The list of the maintainers is linked to the project page.

skor’s picture

Thanks. I hadn't noticed that before.

robloach’s picture

Very 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?

skor’s picture

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

skor’s picture

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

skor’s picture

Status: Needs review » Postponed (maintainer needs more info)

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

dave reid’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

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

dave reid’s picture

Possibly couldn't you also use something like http://drupal.org/project/site_verify ?