Language Change PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
19 May 2024

Summary of Changes

Make sure the Web cron scheduler does actually tigger tasks

This has been rebased against 6.0-dev as the change is a b/c break. The reason is that right now the recommended URL is "id" that ID check does not work as the ID is set to the default article id when not set via the URL thus the code following it fails. Thats the reason it has been moved to taskid which also makes more sense.

Testing Instructions

  • Setup 6.0-dev
  • System -> Scheduled Tasks -> Options -> Disable Lazy Sheduler
  • System -> Scheduled Tasks -> Options -> Enable CRON Sheduler
  • Trigger the CRON Sheduler for example via curl or other external tool
  • Notice that nothing will be triggered

Actual result BEFORE applying this Pull Request

Before the patch the triggered method requires an $id to be passed which is not aviable when calling it from the web cron

Expected result AFTER applying this Pull Request

With that patch we are taking the code from the CLI Runner and trigger the tasks based on priority one by one.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: joomla/Manual#286

  • No documentation changes for manual.joomla.org needed

avatar zero-24 zero-24 - open - 19 May 2024
avatar zero-24 zero-24 - change - 19 May 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2024
Category Front End Plugins
avatar zero-24 zero-24 - change - 20 May 2024
Labels Added: PR-5.1-dev
avatar zero-24 zero-24 - close - 31 May 2024
avatar zero-24 zero-24 - change - 31 May 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-05-31 20:48:11
Closed_By zero-24
avatar zero-24 zero-24 - change - 20 Jul 2024
Title
[5.1] Web cron scheduler does not tigger tasks at all
[6.0] [BC Break] Web cron scheduler does not tigger tasks at all
avatar zero-24 zero-24 - edited - 20 Jul 2024
avatar zero-24 zero-24 - change - 20 Jul 2024
Status Closed New
Closed_Date 2024-05-31 20:48:11
Closed_By zero-24
avatar zero-24 zero-24 - change - 20 Jul 2024
Status New Pending
avatar zero-24 zero-24 - reopen - 20 Jul 2024
avatar zero-24 zero-24 - change - 20 Jul 2024
Labels Added: PR-6.0-dev
Removed: PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2024
Category Front End Plugins Administration com_finder Installation Language & Strings
avatar zero-24 zero-24 - change - 20 Jul 2024
Labels Added: Language Change
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2024
Category Administration com_finder Installation Language & Strings Administration Language & Strings Front End Plugins
avatar zero-24 zero-24 - change - 20 Jul 2024
The description was changed
avatar zero-24 zero-24 - edited - 20 Jul 2024
avatar zero-24 zero-24 - change - 20 Jul 2024
The description was changed
avatar zero-24 zero-24 - edited - 20 Jul 2024
avatar zero-24
zero-24 - comment - 20 Jul 2024

Rebased against 6.0-dev and comments above updated.

avatar zero-24 zero-24 - change - 20 Jul 2024
The description was changed
avatar zero-24 zero-24 - edited - 20 Jul 2024
avatar Fedik
Fedik - comment - 20 Jul 2024

I think you can safely introduce new parameter name in any of 5.x series.

$input  = $this->getApplication()->getInput();
$id     = $input->getInt('id', 0);
$taskId = $input->getInt('taskid', $id);

// Then later on, add deprecation warning if both ID exists and Tsks loaded by this id
if ($id && $tasks) {
  //.... Use of "id" parameter is deprecated and will be removed, use "taskid" instead
}
avatar zero-24
zero-24 - comment - 20 Jul 2024

Cool idea but there is still a problem when the "id" has not been set in the URL the call $input->getInt('id', 0); results into the default article ID which could also be an valid task id so no other task can be triggered. Or I'm missing something?

Once agreed with this solution an backport can be done but we would need to keep the old/broken behavior for b/c, right?

avatar Fedik
Fedik - comment - 20 Jul 2024

but we would need to keep the old/broken behavior for b/c, right?

Correct, we check for taskid if it does not exist we use id (old/broken stuff)

results into the default article ID which could also be an valid task id so no other task can be triggered. Or I'm missing something?

Yes, as I understood , but it is current broken behavior, it will stay for a while (when taskid is empty)

avatar zero-24
zero-24 - comment - 20 Jul 2024

Agree the backported PR is here: #43817

avatar zero-24 zero-24 - close - 25 Jul 2024
avatar zero-24 zero-24 - change - 25 Jul 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-07-25 20:19:09
Closed_By zero-24
avatar zero-24
zero-24 - comment - 25 Jul 2024

Not needed anymore as the requested parameter change has been removed from the base PR

Add a Comment

Login with GitHub to post a comment