You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/Command/Background/JobWorker.php
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,25 @@ protected function configure(): void {
52
52
'Interval in seconds in which the worker should repeat already processed jobs (set to 0 for no repeat)',
53
53
5
54
54
)
55
+
->addOption(
56
+
'stop_after',
57
+
't',
58
+
InputOption::VALUE_OPTIONAL,
59
+
'Duration after which the worker should stop and exit. The worker won\'t kill a potential running job, it will exit after this job has finished running (supported values are: "30" or "30s" for 30 seconds, "10m" for 10 minutes and "2h" for 2 hours)'
60
+
)
55
61
;
56
62
}
57
63
58
64
protectedfunctionexecute(InputInterface$input, OutputInterface$output): int {
0 commit comments