Skip to content
Snippets Groups Projects
Unverified Commit 3a4f6302 authored by Joas Schilling's avatar Joas Schilling Committed by Morris Jobke
Browse files

Also send a delete like on the syncronous action

parent 3930b915
No related branches found
No related tags found
No related merge requests found
......@@ -85,13 +85,23 @@ class RetryJob extends Job {
$client = $this->clientService->newClient();
try {
$client->post($this->lookupServer,
[
'body' => json_encode($argument['dataArray']),
'timeout' => 10,
'connect_timeout' => 3,
]
);
if (count($argument['dataArray']) === 1) {
$client->delete($this->lookupServer,
[
'body' => json_encode($argument['dataArray']),
'timeout' => 10,
'connect_timeout' => 3,
]
);
} else {
$client->post($this->lookupServer,
[
'body' => json_encode($argument['dataArray']),
'timeout' => 10,
'connect_timeout' => 3,
]
);
}
} catch (\Exception $e) {
$this->jobList->add(RetryJob::class,
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment