Under Hosting -> Queues, one can change the frequency of the "task queue" to "5 seconds", but the task will still run at most every 1 minute because the default cron entry generated during the install is to dispatch tasks every 1 minute.

This behavior is a bit counter-intuitive; I'd expect that either the UI wouldn't let me reduce it below what's specified in the crontab, or that the crontab would be modified automatically.

CommentFileSizeAuthor
#5 724498.png27.16 KBmig5

Comments

adrian’s picture

cron can't be run any shorter than once a minute.

that's the lower limit on frequency.

guypaddock’s picture

Component: Code » User interface

In that case, the option for seconds doesn't make much sense inside the UI...

Anonymous’s picture

Status: Active » Closed (won't fix)

Yes it does, because when the interval is set to 'every one second', you can run the 'hosting dispatch' command (i.e the entry in your crontab) manually, and it won't return with 'too early for queue' as it normally would. In otherwords it allows you to force the dispatching of the queue, which is useful for development purposes.

So you have to distinguish between the Unix cron interval, and Aegir which maintains its own monitoring of the interval and won't allow a queue to run more than once within a certain amount of time even if cron asks it to.

Marking as won't fix, as this is a feature (in my opinion).

guypaddock’s picture

Status: Closed (won't fix) » Active

In that case, I'd like to vote for a message to this effect in the user interface?

Anonymous’s picture

Status: Active » Fixed
StatusFileSize
new27.16 KB

Helpful message to that effect committed in HEAD.

Status: Fixed » Closed (fixed)

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

  • Commit 8c3e464 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by mig5:
    #724498 provide help info explaining why it might be useful to set the...

  • Commit 8c3e464 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by mig5:
    #724498 provide help info explaining why it might be useful to set the...