Configuration

reset_scheduler comes with a schedulable command scheduler:reset. That way you can execute it via CLI (cron) and as a TYPO3 scheduler task.

Scheduler Task

Create a new scheduler task of type: Execute console command.

Choose schedulable command: scheduler:reset.

Define a fequency

Press Save to reload the form with new options.

Set the options to your needs.

CLI Command

Composer

vendor/bin/typo3 scheduler:reset [OPTIONS]
Copied!

DDEV

ddev typo3 scheduler:reset [OPTIONS]
Copied!

Classic

typo3/sysext/core/bin/typo3 scheduler:reset [OPTIONS]
Copied!

Options

Name Type Default
bool false
string 1
int 3600
bool false

info (-i)

info (-i)
Type
bool
Default
false

Using the info option, you can first check for any failing tasks that need to be reset or reported via email. This helps prevent an excessive number of notification emails. Using this option will not process any other options and will not reset any task nor send any mail.

vendor/bin/typo3 scheduler:reset -i
Copied!

email (-m)

email (-m)
Type
string
Default
1

Specify the recipient's email address here. Notifications will only be sent if any failing tasks are detected. The task also verifies whether the TYPO3 mail system is correctly configured. If any issues are found, they will be reported via the CLI.

vendor/bin/typo3 scheduler:reset -m admin@example.com
Copied!

execution-timeout (-t)

execution-timeout (-t)
Type
int
Default
3600

Specify a timeout (in seconds) after which indefinitely running tasks should be reset. Using the execution-timeout option without the reset or email option will show an error.

vendor/bin/typo3 scheduler:reset -t 900 -r
Copied!

reset (-r)

reset (-r)
Type
bool
Default
false

Resets all tasks that have exceeded the defined execution timeout (default: 3600 seconds). After the reset, the task will be executed again in the next scheduler run.

vendor/bin/typo3 scheduler:reset -t 1800 -r
Copied!

Reset and Mail

It is also possible to sent info mail and reset failing tasks in one run:

vendor/bin/typo3 scheduler:reset -t 1800 -r -m admin@example.com
Copied!