Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ScheduleRunner::runWebCron using menu's id #43576

Closed
brbrbr opened this issue May 30, 2024 · 2 comments
Closed

ScheduleRunner::runWebCron using menu's id #43576

brbrbr opened this issue May 30, 2024 · 2 comments

Comments

@brbrbr
Copy link

brbrbr commented May 30, 2024

Steps to reproduce the issue

  • Create a menu item with a single article and make it the default menu (or any other menu item with an id=)
  • Create a Webcron Link
  • Execute the Webcron

Expected result

Execution of task(s) due to execution. From the inline help:

By default, requesting this base link will only run tasks due for execution. To execute a specific task, use the task's ID as a query parameter appended to the URL: BASE_URL&id=<taskId>

(Thus the id retrieved from the input in ScheduleRunner::runWebCron should be zero.)

Actual result

The id in runWebCron is set to the id from the menu item, I think it is parseRawRoute adding the id.

So only the tasks matching that ID is executed, if there is any task with that id.

System information (as much as possible)

Additional comments

The problem is resolved by adding a &id=0 to the Webcron Link. Which is a minor inconvenience, but shouldn't that be the default base url??

@brbrbr
Copy link
Author

brbrbr commented Jul 10, 2024

This issue is resolved with PR #43164

@alikon
Copy link
Contributor

alikon commented Jul 13, 2024

so let's close it

@alikon alikon closed this as completed Jul 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants