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/Transport/Doctrine/Connection.php
+35-43Lines changed: 35 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -136,49 +136,19 @@ public function send(string $body, array $headers, int $delay = 0): string
136
136
'available_at' => '?',
137
137
]);
138
138
139
-
$send = function () use ($queryBuilder, $body, $headers, $now, $availableAt) {
140
-
$this->executeQuery($queryBuilder->getSQL(), [
141
-
$body,
142
-
json_encode($headers),
143
-
$this->configuration['queue_name'],
144
-
$now,
145
-
$availableAt,
146
-
], [
147
-
null,
148
-
null,
149
-
null,
150
-
Type::DATETIME,
151
-
Type::DATETIME,
152
-
]);
153
-
};
154
-
155
-
if ($this->usePgsqlNotify) {
156
-
if (0 !== $delay) {
157
-
thrownewInvalidArgumentException('Delays are not supported when using PostgreSQL NOTIFY, set the "pgsql_get_notify" option to false to disable this feature. You can also create a dedicated queue for delayed message not using NOTIFY.');
0 commit comments