[BUGFIX] Exception when scheduling "at" execution time 73/18173/2
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:30:58 +0000 (01:30 +0100)
commitf3119e4cfeb1083308f4a90aa056bfe781303251
tree7165c4693fc4f8ad5c1146177827dcc00a649494
parent91a1d0a35fd6b7eedabc90b1238a8c6b0a5074f5
[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/18173
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/scheduler/Classes/Execution.php
typo3/sysext/scheduler/Classes/Scheduler.php