RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
13 Jul 2024

Pull Request for Issue #43767 .

Summary of Changes

Testing Instructions

see #43767

Actual result BEFORE applying this Pull Request

no task is executed if there is one Manual

Expected result AFTER applying this Pull Request

task is executed even if there is a Manual task

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:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 13 Jul 2024
avatar alikon alikon - change - 13 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jul 2024
Category Administration
avatar alikon alikon - change - 13 Jul 2024
Labels Added: PR-4.4-dev
avatar alikon alikon - change - 13 Jul 2024
The description was changed
avatar alikon alikon - edited - 13 Jul 2024
avatar brbrbr
brbrbr - comment - 13 Jul 2024

I was wondering, wouldn't it be safer for future changes to clone the lockQuery

$idQuery= clone $lockQuery; // and move the $lockQuery->update part down.

This ensures that the conditions for idquery are always the same. And saves some code.

And I got a different issue while testing. If you trash a locked/running task, it blocks execution, since $lockCountQuery does not ignore trashed tasks.

25eb4cc 15 Jul 2024 avatar alikon cs
avatar alikon
alikon - comment - 15 Jul 2024

And I got a different issue while testing. If you trash a locked/running task, it blocks execution, since $lockCountQuery does not ignore trashed tasks.

should be fixed

@brbrbr can you test ?

avatar brbrbr
brbrbr - comment - 15 Jul 2024

Hi,

I went through the different scenarios and all seems to work fine now.

Nice work, you reshuffled quite a bit code, don't like the 'clone' :)

A bit beyond this fix; Locking remains an issue. If a task crashes the whole cue get's locked. And i can't even force a run (or run an unlock task) since neither the CLI nor the WebCron pass the allowConcurrent option.

I have some thought about that: #43775

878c75a 5 Aug 2024 avatar alikon cs
avatar softforge softforge - test_item - 24 Aug 2024 - Tested successfully
avatar softforge
softforge - comment - 24 Aug 2024

I have tested this item ✅ successfully on 1737666

Works well, good catch


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43784.

avatar mabdelaziz77 mabdelaziz77 - test_item - 24 Aug 2024 - Tested successfully
avatar mabdelaziz77
mabdelaziz77 - comment - 24 Aug 2024

I have tested this item ✅ successfully on 1737666

It works for me.
I have setup 1 manual task, 1 every minute and 1 every 2 minutes.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43784.

avatar richard67 richard67 - change - 24 Aug 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Aug 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43784.

avatar laoneo laoneo - change - 12 Sep 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-09-12 08:04:17
Closed_By laoneo
Labels Added: RTC bug
avatar laoneo laoneo - close - 12 Sep 2024
avatar laoneo laoneo - merge - 12 Sep 2024
avatar laoneo
laoneo - comment - 12 Sep 2024

Thanks!

Add a Comment

Login with GitHub to post a comment