[BUGFIX] Exception when scheduling "at" execution time 06/18106/4
authorAndreas Wolf <andreas.wolf@typo3.org>
Sun, 10 Feb 2013 00:00:25 +0000 (01:00 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 10 Feb 2013 00:29:00 +0000 (01:29 +0100)
commit086b8acfb28dca1a69c247a4c2ae4af0acc4073f
treeaa817aed03fb1eb1e7cbf009f21f360ccbeaf754
parent6c377b2f37e3a793c4c27828ace59411f50d4115
[BUGFIX] Exception when scheduling "at" execution time

If a recurring task is converted to a single task and the endtime is set
before now, then the exception "Task is past end date" is thrown as the
next execution time for the "at" daemon is calculated.

The fix is to catch the exceptions and ignore them, as we don't care
about tasks that will never run again when calculating the next
execution date.

Fixes: #45265
Releases: 6.1, 6.0
Change-Id: If6fd368e6c11c0b9058eb8a82a736220ef538b70
Reviewed-on: https://review.typo3.org/18106
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/scheduler/Classes/Execution.php
typo3/sysext/scheduler/Classes/Scheduler.php