Skip to content

Commit

Permalink
DOP-4451 move spin up additional tasks into for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 7, 2024
1 parent 3083fb1 commit 8fd47c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
const job = await prepGithubPushPayload(body, payload, jobTitle);

try {
await runAdditionalECSTasks();
consoleLogger.info(job.title, 'Creating Job');
const jobId = await jobRepository.insertJob(job, c.get('jobsQueueUrl'));
jobRepository.notify(jobId, c.get('jobUpdatesQueueUrl'), JobStatus.inQueue, 0);
Expand All @@ -255,7 +256,6 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr

try {
const returnVal = await createAndInsertJob();
await runAdditionalECSTasks();
return {
statusCode: 202,
headers: { 'Content-Type': 'text/plain' },
Expand Down

0 comments on commit 8fd47c9

Please sign in to comment.