Also send a delete like on the syncronous action
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3930b91511
commit
3a4f6302ca
|
@ -85,13 +85,23 @@ class RetryJob extends Job {
|
||||||
$client = $this->clientService->newClient();
|
$client = $this->clientService->newClient();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$client->post($this->lookupServer,
|
if (count($argument['dataArray']) === 1) {
|
||||||
[
|
$client->delete($this->lookupServer,
|
||||||
'body' => json_encode($argument['dataArray']),
|
[
|
||||||
'timeout' => 10,
|
'body' => json_encode($argument['dataArray']),
|
||||||
'connect_timeout' => 3,
|
'timeout' => 10,
|
||||||
]
|
'connect_timeout' => 3,
|
||||||
);
|
]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$client->post($this->lookupServer,
|
||||||
|
[
|
||||||
|
'body' => json_encode($argument['dataArray']),
|
||||||
|
'timeout' => 10,
|
||||||
|
'connect_timeout' => 3,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->jobList->add(RetryJob::class,
|
$this->jobList->add(RetryJob::class,
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue