Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | SchedulerConfigurationForm.png | 49.41 KB | Eric-Alexander Schaefer |
#10 | NodeEditForm.png | 27.91 KB | Eric-Alexander Schaefer |
Comments
Comment #1
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedSo you want a configuration field for the cron intervall for displaying it in the scheduler field set? Why not do that via theming?
Comment #2
NancyDruRight 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.
Comment #3
bleen CreditAttribution: bleen commentedmy users have the same problems +1
Comment #4
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedInstead 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?
Comment #5
bleen CreditAttribution: bleen commentedEither 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
Comment #6
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedYou 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.
Comment #7
bleen CreditAttribution: bleen commentedcant we just look at the watchdog logs to figure out how often cron runs?
Comment #8
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedHow do you want to do that? Search the log table and parse the contents? What about manual cron runs?
Comment #9
NancyDruThat 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.
Comment #10
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedCommitted. Screenshot attached.
http://drupal.org/cvs?commit=449766
Comment #11
NancyDruThanks.