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: src/Symfony/Component/Messenger/Bridge/Beanstalkd/CHANGELOG.md
+5
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
1
CHANGELOG
2
2
=========
3
3
4
+
7.2
5
+
---
6
+
7
+
* Implement the `KeepaliveReceiverInterface` to enable asynchronously notifying Beanstalkd that the job is still being processed, in order to avoid timeouts
class ConsumeMessagesCommand extends Command implements SignalableCommandInterface
45
45
{
46
+
privateconstDEFAULT_KEEPALIVE_INTERVAL = 5;
47
+
46
48
private ?Worker$worker = null;
47
49
48
50
publicfunction__construct(
@@ -75,6 +77,7 @@ protected function configure(): void
75
77
newInputOption('queues', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Limit receivers to only consume from the specified queues'),
76
78
newInputOption('no-reset', null, InputOption::VALUE_NONE, 'Do not reset container services after each message'),
77
79
newInputOption('all', null, InputOption::VALUE_NONE, 'Consume messages from all receivers'),
80
+
newInputOption('keepalive', null, InputOption::VALUE_OPTIONAL, 'Whether to use the transport\'s keepalive mechanism if implemented', self::DEFAULT_KEEPALIVE_INTERVAL),
78
81
])
79
82
->setHelp(<<<'EOF'
80
83
The <info>%command.name%</info> command consumes messages and dispatches them to the message bus.
@@ -124,6 +127,13 @@ protected function configure(): void
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php
+19-1
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@
39
39
#[AsCommand(name: 'messenger:failed:retry', description: 'Retry one or more messages from the failure transport')]
40
40
class FailedMessagesRetryCommand extends AbstractFailedMessagesCommand implements SignalableCommandInterface
41
41
{
42
+
privateconstDEFAULT_KEEPALIVE_INTERVAL = 5;
43
+
42
44
privatebool$shouldStop = false;
43
45
privatebool$forceExit = false;
44
46
private ?Worker$worker = null;
@@ -62,6 +64,7 @@ protected function configure(): void
62
64
newInputArgument('id', InputArgument::IS_ARRAY, 'Specific message id(s) to retry'),
63
65
newInputOption('force', null, InputOption::VALUE_NONE, 'Force action without confirmation'),
64
66
newInputOption('transport', null, InputOption::VALUE_OPTIONAL, 'Use a specific failure transport', self::DEFAULT_TRANSPORT_OPTION),
67
+
newInputOption('keepalive', null, InputOption::VALUE_OPTIONAL, 'Whether to use the transport\'s keepalive mechanism if implemented', self::DEFAULT_KEEPALIVE_INTERVAL),
65
68
])
66
69
->setHelp(<<<'EOF'
67
70
The <info>%command.name%</info> retries message in the failure transport.
@@ -85,6 +88,13 @@ protected function configure(): void
0 commit comments