File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,13 @@ protected function addMultipleConsumers(ArrayNodeDefinition $node)
194
194
->scalarNode ('idle_timeout ' )->end ()
195
195
->scalarNode ('idle_timeout_exit_code ' )->end ()
196
196
->scalarNode ('auto_setup_fabric ' )->defaultTrue ()->end ()
197
+ ->arrayNode ('graceful_max_execution ' )
198
+ ->canBeUnset ()
199
+ ->children ()
200
+ ->integerNode ('timeout ' )->end ()
201
+ ->integerNode ('exit_code ' )->defaultValue (0 )->end ()
202
+ ->end ()
203
+ ->end ()
197
204
->append ($ this ->getMultipleQueuesConfiguration ())
198
205
->arrayNode ('qos_options ' )
199
206
->canBeUnset ()
Original file line number Diff line number Diff line change @@ -289,6 +289,16 @@ protected function loadMultipleConsumers()
289
289
if (isset ($ consumer ['idle_timeout_exit_code ' ])) {
290
290
$ definition ->addMethodCall ('setIdleTimeoutExitCode ' , array ($ consumer ['idle_timeout_exit_code ' ]));
291
291
}
292
+ if (isset ($ consumer ['graceful_max_execution ' ])) {
293
+ $ definition ->addMethodCall (
294
+ 'setGracefulMaxExecutionDateTimeFromSecondsInTheFuture ' ,
295
+ array ($ consumer ['graceful_max_execution ' ]['timeout ' ])
296
+ );
297
+ $ definition ->addMethodCall (
298
+ 'setGracefulMaxExecutionTimeoutExitCode ' ,
299
+ array ($ consumer ['graceful_max_execution ' ]['exit_code ' ])
300
+ );
301
+ }
292
302
if (!$ consumer ['auto_setup_fabric ' ]) {
293
303
$ definition ->addMethodCall ('disableAutoSetupFabric ' );
294
304
}
You can’t perform that action at this time.
0 commit comments