No Code Attached Yet
avatar brianteeman
brianteeman
12 Jan 2022

The scheduler is a new component and its not obvious that out of the box the interval is only an approximate value. If no one visits your site the task wont be triggered.

I'm also a bit confused as to what my options are for triggering a task.

Is the native cron referred to here the web cron?

image

image

avatar brianteeman brianteeman - open - 12 Jan 2022
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Jan 2022
avatar richard67
richard67 - comment - 12 Jan 2022

Is the native cron referred to here the web cron?

I think it's a real (Unix) cron job running locally on an unixoid host.

avatar brianteeman
brianteeman - comment - 12 Jan 2022

I think it might be as well but no idea what the syntax would be for that. Especially as there is still no help page

avatar richard67
richard67 - comment - 12 Jan 2022

I think a real cron would use the CLI: php cli/joomla.php scheduler:run (without any arguments).

avatar brianteeman
brianteeman - comment - 12 Jan 2022

there must be arguments otherwise the cli would not know which task to run.

But do you see my point. There is no way for a user to know this stuff. Especially the way that lazy scheduling works with regards to intervals

avatar richard67
richard67 - comment - 12 Jan 2022

I agree there should be some documentation.

avatar richard67
richard67 - comment - 12 Jan 2022

there must be arguments otherwise the cli would not know which task to run.

It could run all which are outstanding.

avatar PhilETaylor
PhilETaylor - comment - 13 Jan 2022

there must be arguments otherwise the cli would not know which task to run.

No, that's the whole point of the component! It runs all jobs - based on the cron syntax of the task, the current time, and the last run time of that task.

The php cli/joomla.php scheduler:run should be run every min of every day * * * * *

Then the component decides which jobs need running - based on the cron syntax of the task, the current time, and the last run time of that task.

avatar PhilETaylor
PhilETaylor - comment - 13 Jan 2022

"Recommended if triggering with native cron"

This should read, in context with the previous sentence.

"It is recommended TO DISABLE lazy scheduling, if triggering with native cron"

avatar brianteeman brianteeman - change - 14 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-14 15:05:50
Closed_By brianteeman
avatar brianteeman brianteeman - close - 14 Feb 2022

Add a Comment

Login with GitHub to post a comment