We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ebb1b commit bd7aaa8Copy full SHA for bd7aaa8
src/Illuminate/Queue/Console/RetryCommand.php
@@ -2,6 +2,7 @@
2
3
namespace Illuminate\Queue\Console;
4
5
+use DateTimeInterface;
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Arr;
8
@@ -133,7 +134,11 @@ protected function refreshRetryUntil($payload)
133
134
$instance = unserialize($payload['data']['command']);
135
136
if (is_object($instance) && method_exists($instance, 'retryUntil')) {
- $payload['retryUntil'] = $instance->retryUntil()->timestamp;
137
+ $retryUntil = $instance->retryUntil();
138
+
139
+ $payload['retryUntil'] = $retryUntil instanceof DateTimeInterface
140
+ ? $retryUntil->getTimestamp()
141
+ : $retryUntil;
142
}
143
144
return json_encode($payload);
0 commit comments