http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692009-10-10T11:55:38ZTYPO3 ForgeTYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704372009-10-10T11:55:38ZFrancois Suterfrancois@typo3.org
<ul></ul><p>I'm not sure how to best answer that. The logic for recurring tasks is that the next execution will always be calculated so as to be in the future. For single tasks, their date should be set in the future "manually" since there's no calculation.</p>
<p>Note that your remark raises at least one problem: when creating a new task, the default date and time defined using $GLOBALS[EXEC_TIME]. If the task is saved without changes, it will set the date in the past, if only because at least a few seconds will have elapsed in the meantime. For recurring tasks, this doesn't matter as a next execution date is calculated, but for single tasks it comes to the behaviour you're describing: the task is late and disabled.</p>
<p>Maybe the following could be a solution: when a new single task is created, the datetime is checked upon saving. If it is in the past, it is changed to be one minute in the future, so that it doesn't get disabled.</p>
<p>This would be the simplest solution. Chaging the automatic disabling of tasks would be more complicated and it is quite a useful mechanism I think.</p>
<p>What do you think?</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704382009-10-11T13:56:19ZIngmar Schlechtingmar@typo3.org
<ul></ul><p>Actually, I don't understand why tasks are automatically disabled at all. When the date is in the past, well, then it could just be considered a "late" task and executed at the next occasion.</p>
<p>I think when the user wants to disable the tasks, she would just do that. But why would she want the system to automatically disable it?</p>
<p>Regarding the problem you mentioned, I think that wouldn't exist any more when getting rid of the automatic disabling, would it?</p>
<p>I think the bahavior regarding recurring tasks is fine though.</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704392009-10-13T22:29:05ZIngmar Schlechtingmar@typo3.org
<ul></ul><p><a class="user active user-mention" href="http://forge.typo3.org/users/329">@Francois Suter</a>, I just uploaded the second patch I created during out phone call yesterday, so it doesn't get lost.</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704402009-10-16T11:27:25ZSteffen Kamperinfo@sk-typo3.de
<ul></ul><p>isn't it much simpler to validate the date and display a extJs msgbox if date is older than now? This wouldn't allow to create dates lower now.</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704412009-10-16T11:36:43ZFrancois Suterfrancois@typo3.org
<ul></ul><p>Here's the formal patch for this issue, which I'm going to submit to the core list.</p>
<p>The main difference with Ingmar's patch (except for more comments) is that the isNewSingleExecution flag is set to false the next time the next excution time is calculated. Otherwise, the task is a new single execution forever.</p>
<p>@steffen: sure, validations could be added, but this bug highlights a fundamental logic flaw, which must be addressed. It should be possible to create single-running tasks with a date set in the past and expect them to be run once. Potentially a task could be created from somewhere else than the BE module.</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=704422009-10-20T21:55:43ZFrancois Suterfrancois@typo3.org
<ul></ul><p>Committed to trunk in revision 6194.</p> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=1952502013-12-10T01:24:39ZMichael Stuckimichael.stucki@typo3.org
<ul><li><strong>Category</strong> set to <i>scheduler</i></li></ul> TYPO3 Core - Bug #25621: Creation of late taskhttp://forge.typo3.org/issues/25621?journal_id=1954502013-12-10T01:27:20ZMichael Stuckimichael.stucki@typo3.org
<ul><li><strong>Project</strong> changed from <i>739</i> to <i>TYPO3 Core</i></li><li><strong>Category</strong> changed from <i>scheduler</i> to <i>scheduler</i></li><li><strong>Target version</strong> deleted (<del><i>0</i></del>)</li></ul>