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 @@ -232,6 +232,13 @@ protected function addDynamicConsumers(ArrayNodeDefinition $node)
232
232
->scalarNode ('callback ' )->isRequired ()->end ()
233
233
->scalarNode ('idle_timeout ' )->end ()
234
234
->scalarNode ('idle_timeout_exit_code ' )->end ()
235
+ ->arrayNode ('graceful_max_execution ' )
236
+ ->canBeUnset ()
237
+ ->children ()
238
+ ->integerNode ('timeout ' )->end ()
239
+ ->integerNode ('exit_code ' )->defaultValue (0 )->end ()
240
+ ->end ()
241
+ ->end ()
235
242
->scalarNode ('auto_setup_fabric ' )->defaultTrue ()->end ()
236
243
->arrayNode ('qos_options ' )
237
244
->canBeUnset ()
Original file line number Diff line number Diff line change @@ -363,6 +363,16 @@ protected function loadDynamicConsumers()
363
363
if (isset ($ consumer ['idle_timeout_exit_code ' ])) {
364
364
$ definition ->addMethodCall ('setIdleTimeoutExitCode ' , array ($ consumer ['idle_timeout_exit_code ' ]));
365
365
}
366
+ if (isset ($ consumer ['graceful_max_execution ' ])) {
367
+ $ definition ->addMethodCall (
368
+ 'setGracefulMaxExecutionDateTimeFromSecondsInTheFuture ' ,
369
+ array ($ consumer ['graceful_max_execution ' ]['timeout ' ])
370
+ );
371
+ $ definition ->addMethodCall (
372
+ 'setGracefulMaxExecutionTimeoutExitCode ' ,
373
+ array ($ consumer ['graceful_max_execution ' ]['exit_code ' ])
374
+ );
375
+ }
366
376
if (!$ consumer ['auto_setup_fabric ' ]) {
367
377
$ definition ->addMethodCall ('disableAutoSetupFabric ' );
368
378
}
You can’t perform that action at this time.
0 commit comments