Feature #45537

Run manually executed tasks on next cron-run

Added by Stefan Neufeind over 6 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
Target version:
Start date:
2013-02-16
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

Currently manually executed tasks are run directly. It might be good (possibly as a configuration-setting for the scheduler) to be able to instead run the task on the next regular cron-run. This would decouple long-running tasks from end backend-UI but still allow to rerun a task that's usually executed on a daily basis or so.


Related issues

Related to TYPO3 Core - Bug #39139: Decouple backend task execution from backend Closed 2012-07-20
Related to TYPO3 Core - Feature #52686: scheduler: mark task to immediately be triggered by cron Closed 2013-10-11
Related to TYPO3 Core - Task #72628: EXT:Scheduler Outdated documentation Closed 2016-01-10
Related to TYPO3 Core - Task #79695: Usability improvements for scheduler necessary Closed 2017-02-08

Associated revisions

Revision c54d442d (diff)
Added by Michael Oehlhof over 2 years ago

[FEATURE] EXT:Scheduler: Run manually executed tasks on next cron-run

Added a feature to the scheduler to mark tasks to be run by
next cron job.

Resolves: #45537
Releases: master
Change-Id: I72d0e693821630a0be655159b53c168b1973d886
Reviewed-on: https://review.typo3.org/45807
Tested-by: TYPO3com <>
Reviewed-by: Philipp Gampe <>
Tested-by: Philipp Gampe <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

Revision 6a7a25d6 (diff)
Added by Frank Naegler over 2 years ago

[TASK] Usability improvements for scheduler module

This patch add another icon for the „run on next cron“ button and add
tooltips for a better and faster understanding of the buttons.

Resolves: #79695
Related: #45537
Releases: master
Change-Id: I0ba372f2f884af22c1f4fd74be99208493624971
Reviewed-on: https://review.typo3.org/51598
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Tested-by: TYPO3com <>
Tested-by: Mona Muzaffar <>
Reviewed-by: Mona Muzaffar <>
Reviewed-by: Tymoteusz Motylewski <>
Tested-by: Tymoteusz Motylewski <>

History

#1 Updated by Georg Ringer over 6 years ago

we do this a different way: if tasks run regularly and sometimes on demand, we create an additional task with defined as running only once. when it is finished you just activate the task again and it will run with next scheduler job.

wouldn'T that be enough?

#2 Updated by Stefan Neufeind over 6 years ago

Good workaround, I agree.

But with a list of like 20 scheduler-entries (have that lately) you wouldn't really want to keep all duplicate just because you'll eventually need to rerun it (some import-job that failed during the night or whatever).

#3 Updated by Georg Ringer over 6 years ago

if that is a global configuration, IMO it would be ok. wanna do the patch? it seems your client needs it ;))

#4 Updated by Philipp Gampe over 6 years ago

I think it would be enough to create a schedule-now action which sets the next execution time to now(). Then the next cron run will pick it up.

#5 Updated by Ingo Renner over 6 years ago

I'd also be in favor of adding a schedule-for-next-cron-run action instead of modifying the run-now behavior. Obviously when you say "now", you mean "now". Also I would see your use case more as an edge case rather than the regular case. I see the point with decoupling from the UI though!

#6 Updated by Michael Stucki over 5 years ago

  • Category set to scheduler

#7 Updated by Michael Stucki over 5 years ago

  • Project changed from Scheduler to TYPO3 Core
  • Category changed from scheduler to scheduler

#8 Updated by Mathias Schreiber over 4 years ago

  • Target version set to 7.4 (Backend)

#9 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#10 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 8 LTS

#11 Updated by Michael Oehlhof over 3 years ago

Taken from the duplicate 52686:
There should be a new action icon to mark a task to be run by cron. Or even also a new button like "Mark selected tasks for next cronjob run"
This should just update nextexecution field to $GLOBALS['EXEC_TIME']

#12 Updated by Michael Oehlhof over 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Michael Oehlhof

#13 Updated by Gerrit Code Review over 3 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#14 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#15 Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#16 Updated by Gerrit Code Review about 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#17 Updated by Gerrit Code Review about 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#18 Updated by Gerrit Code Review almost 3 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#19 Updated by Gerrit Code Review almost 3 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#20 Updated by Gerrit Code Review almost 3 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#21 Updated by Michael Oehlhof over 2 years ago

  • Sprint Focus set to On Location Sprint

#22 Updated by Gerrit Code Review over 2 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#23 Updated by Gerrit Code Review over 2 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#24 Updated by Gerrit Code Review over 2 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#25 Updated by Gerrit Code Review over 2 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#26 Updated by Gerrit Code Review over 2 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#27 Updated by Gerrit Code Review over 2 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#28 Updated by Gerrit Code Review over 2 years ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45807

#29 Updated by Michael Oehlhof over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#30 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF