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)
232232 ->scalarNode ('callback ' )->isRequired ()->end ()
233233 ->scalarNode ('idle_timeout ' )->end ()
234234 ->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 ()
235242 ->scalarNode ('auto_setup_fabric ' )->defaultTrue ()->end ()
236243 ->arrayNode ('qos_options ' )
237244 ->canBeUnset ()
Original file line number Diff line number Diff line change @@ -363,6 +363,16 @@ protected function loadDynamicConsumers()
363363 if (isset ($ consumer ['idle_timeout_exit_code ' ])) {
364364 $ definition ->addMethodCall ('setIdleTimeoutExitCode ' , array ($ consumer ['idle_timeout_exit_code ' ]));
365365 }
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+ }
366376 if (!$ consumer ['auto_setup_fabric ' ]) {
367377 $ definition ->addMethodCall ('disableAutoSetupFabric ' );
368378 }
You can’t perform that action at this time.
0 commit comments