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
core.info(`Init task started. Watch the task logs in https://${aws.config.region}.console.aws.amazon.com/cloudwatch/home?region=${aws.config.region}#logsV2:log-groups/log-group/ecs$252F${service}/log-events/ecs$252Fapp$252F${taskId}`)
222
+
});
223
+
224
+
if (runTaskResponse.failures && runTaskResponse.failures.length > 0) {
225
+
const failure = runTaskResponse.failures[0];
226
+
throw new Error(`${failure.arn} is ${failure.reason}`);
227
+
}
228
+
229
+
// Wait for task to end
230
+
if (waitForService && waitForService.toLowerCase() === 'true') {
231
+
core.debug(`Waiting for the service to become stable. Will wait for ${waitForMinutes} minutes`);
core.info(`All tasks have stopped. Watch progress in the Amazon ECS console: https://console.aws.amazon.com/ecs/home?region=${aws.config.region}#/clusters/${clusterName}/tasks`);
260
+
}
261
+
262
+
async function tasksExitCode(ecs, clusterName, taskArns) {
core.info(`Init task started. Watch the task logs in https://${aws.config.region}.console.aws.amazon.com/cloudwatch/home?region=${aws.config.region}#logsV2:log-groups/log-group/ecs$252F${service}/log-events/ecs$252Fapp$252F${taskId}`)
core.info(`All tasks have stopped. Watch progress in the Amazon ECS console: https://console.aws.amazon.com/ecs/home?region=${aws.config.region}#/clusters/${clusterName}/tasks`);
0 commit comments