Updated torrent deployMode
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
820edfdff0
commit
5728fb4d94
|
@ -106,6 +106,13 @@ class DeployImageAction extends AbstractController
|
||||||
'numPartition' => (string) $input->partitionNumber,
|
'numPartition' => (string) $input->partitionNumber,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->deployImageOgRepositoryAction->__invoke($input, $image, $client->getEntity(), $this->httpClient);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
//return new JsonResponse(data: ['error' => $e->getMessage()], status: Response::HTTP_INTERNAL_SERVER_ERROR);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$agentJobId = $this->deployImageOgAgentAction->__invoke($image, $input, $client->getEntity(), DeployMethodTypes::TORRENT);
|
$agentJobId = $this->deployImageOgAgentAction->__invoke($image, $input, $client->getEntity(), DeployMethodTypes::TORRENT);
|
||||||
$this->createService->__invoke($client->getEntity(), CommandTypes::DEPLOY_IMAGE, TraceStatus::IN_PROGRESS, $agentJobId, $inputData);
|
$this->createService->__invoke($client->getEntity(), CommandTypes::DEPLOY_IMAGE, TraceStatus::IN_PROGRESS, $agentJobId, $inputData);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ class ClientsController extends AbstractController
|
||||||
public function index(Request $request): JsonResponse
|
public function index(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
$data = $request->toArray();
|
$data = $request->toArray();
|
||||||
$requiredFields = ['res', 'der', 'job_id'];
|
$requiredFields = ['nfn', 'res', 'der', 'job_id'];
|
||||||
|
|
||||||
foreach ($requiredFields as $field) {
|
foreach ($requiredFields as $field) {
|
||||||
if (!isset($data[$field])) {
|
if (!isset($data[$field])) {
|
||||||
|
|
Loading…
Reference in New Issue