The cron.php will run regardless of whether the site is in maintenance mode or not. This could potentially cause problems when doing module updates.. I propose that cron.php skip a run if it's called when the site is in maintenance mode.

-Myke

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

myke’s picture

Category: feature » bug
Priority: Critical » Normal
matason’s picture

Status: Active » Needs review
Issue tags: +drupalconparis2009, +drupalconsprint
FileSize
1.27 KB

I'm not sure about the argument put forth here but I was able to create the attached patch in case it's helpful...

matason’s picture

Sorry, this is the correct patch, don't know how to remove the other.

attiks’s picture

Seems like a good idea to me, for the same reason, not breaking upgrade.

Patch applies fine.

klausi’s picture

FileSize
1.04 KB

Shorter patch.

Status: Needs review » Needs work

The last submitted patch failed testing.

klausi’s picture

Status: Needs work » Needs review

HEAD was broken? OK Bot, then try again.

matason’s picture

Status: Needs review » Needs work

This approach is cleaner, applied and tested okay for me. Only issue I can see is that it creates an extra blank line at the end of the file.

klausi’s picture

FileSize
1.04 KB

Thank you very much for nitpicking! ;-)

Patch without blank at the end attached.

klausi’s picture

Status: Needs work » Needs review

... and to be reviewed.

Status: Needs review » Needs work

The last submitted patch failed testing.

fago’s picture

+1 for that.

@patch: The comments should start upper case and end with a point. Anyway I think they should be removed as they say nothing more than the actual code below.

klausi’s picture

Status: Needs work » Needs review
FileSize
984 bytes

Patch should apply now, useless comments are removed.

fago’s picture

Status: Needs review » Reviewed & tested by the community

Great, code looks good now. I 've just tested it properly and it's also working fine, so I think it's ready.

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

matason’s picture

Status: Needs work » Reviewed & tested by the community

The patch still looks and applies okay for me. The reported fail is something to do with database tests.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

This seems like a sensible change. The extra watchdogs to provide additional debugging info are a nice touch.

Committed to HEAD! Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -drupalconparis2009, -drupalconsprint

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