I'd like to see a setting added that tells what the Cron interval is so that something like the following can be added to the Scheduler field set:

We schedule timed events every 20 minutes and the publishing occurs at the next timer pop after your requested time occurs, so it could be up to 20 minutes later before the post is actually published.

Format_interval would be good for this, with the setting being in seconds (does anyone run Cron with that granularity?).

Yes, I realize that this is merely a documentational message and cannot be supported by any Drupal data.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Eric-Alexander Schaefer’s picture

So you want a configuration field for the cron intervall for displaying it in the scheduler field set? Why not do that via theming?

NancyDru’s picture

Right now I do it in a hook_form_alter but I think it would be a good addition to this module. My users see to think they can schedule with pinpoint accuracy, so we had to warn them. I am sure many other adopters of this module have, or willl have, the same type of users.

bleen’s picture

my users have the same problems +1

Eric-Alexander Schaefer’s picture

Instead of having a specialized cron interval field how about having a "extra comments" configuration field, where information like this can be entered as plain text?

bleen’s picture

Either I am misreading this request or @Eric Schafer is ...

As I read it, @NancyDru simply wants a message added to the scheduler form that says "although you may have scheduled publication for 9:34am, in reality this node will be published the first time the cron runs after 9:34 ... oh and our cron runs every 23 minutes."

Obviously the wording can be polished ;)

Point is, I don't think anyone is requesting a new setting, but rather just some explanatory text in the settings form. If I'm the one reading this wrong (a definite possibility) then can you (@NancyDru) please clarify

Eric-Alexander Schaefer’s picture

You are right, but the actual text is different for each installation because of different cron intervalls. Because of that the time would have to be a configuration value. My suggestion is to have a configuration value for the whole text, not only the time. People could then use it for all kinds of custom texts.

bleen’s picture

cant we just look at the watchdog logs to figure out how often cron runs?

Eric-Alexander Schaefer’s picture

How do you want to do that? Search the log table and parse the contents? What about manual cron runs?

NancyDru’s picture

That is correct, Alexander, just a message.

I have considered scanning the watchdog logs to determine when it runs, but that doesn't necessarily tell you when Scheduler is going to run. If you use something like SuperCron then the default Cron interval has no bearing on when Scheduler will be fired off next. I have just not found any really good method for determining when any particular hook_cron will run. And even then, the hook itself may decide not to do anything at that particular time.

Eric-Alexander Schaefer’s picture

Status: Active » Fixed
FileSize
27.91 KB
49.41 KB

Committed. Screenshot attached.
http://drupal.org/cvs?commit=449766

NancyDru’s picture

Thanks.

Status: Fixed » Closed (fixed)

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