Project

General

Profile

Actions

Bug #4224

closed

Scheduled tasks are not all executed by the cron script

Added by Francois Suter over 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
Target version:
-
Start date:
2009-08-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I currently have a situation where my scheduled tasks are ignored by the cron script. I think it's because there's a single task with no next execution date at the top of the tasks list.

I have no time to investigate now, so I'm opening this bug report not to forget.

Actions #1

Updated by Francois Suter over 15 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Francois Suter
  • Priority changed from Must have to Should have

I haven't been able to reproduce this situation. I'm leaving this bug report open for feedback in case someone stumbles on a similar case again.

Actions #2

Updated by Francois Suter over 15 years ago

  • Status changed from Needs Feedback to Resolved
  • % Done changed from 0 to 100

I think I have solved this in r1123.

The error was in tx_scheduler::fetchTask() in the SQL WHERE clause to get the next task to execute:

$whereClause = 'disable = 0 AND nextexecution != 0 AND nextexecution < ' . $GLOBALS['EXEC_TIME'];

This would not take tasks whose next execution time is equal to $GLOBALS['EXEC_TIME'], which is wrong since they are definitely ok to run.

I simple changed the nextexecution test to "<=".

Actions #3

Updated by Francois Suter over 12 years ago

  • Status changed from Resolved to Closed
Actions #4

Updated by Michael Stucki almost 11 years ago

  • Category set to scheduler
Actions #5

Updated by Michael Stucki almost 11 years ago

  • Project changed from 739 to TYPO3 Core
  • Category changed from scheduler to scheduler
Actions

Also available in: Atom PDF