cleanup local pipeline, log aws formation

pull/479/head
Frostebite 2022-12-14 20:57:27 +00:00
parent 1f33da69fe
commit aae3fd7257
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -1516,7 +1516,7 @@ class AWSJobStack {
Parameters: parameters, Parameters: parameters,
}; };
try { try {
cloud_runner_logger_1.default.log(`Creating job aws formation ${taskDefCloudFormation}`); cloud_runner_logger_1.default.log(`Creating job aws formation`);
yield CF.createStack(createStackInput).promise(); yield CF.createStack(createStackInput).promise();
yield CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise(); yield CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise();
} }
@ -1553,7 +1553,7 @@ class AWSJobStack {
}; };
if (cloud_runner_options_1.default.useCleanupCron) { if (cloud_runner_options_1.default.useCleanupCron) {
try { try {
cloud_runner_logger_1.default.log(`Creating job cleanup formation ${cleanup_cron_formation_1.CleanupCronFormation.formation}`); cloud_runner_logger_1.default.log(`Creating job cleanup formation`);
yield CF.createStack(createCleanupStackInput).promise(); yield CF.createStack(createCleanupStackInput).promise();
yield CF.waitFor('stackCreateComplete', { StackName: createCleanupStackInput.StackName }).promise(); yield CF.waitFor('stackCreateComplete', { StackName: createCleanupStackInput.StackName }).promise();
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -142,7 +142,7 @@ export class AWSJobStack {
}; };
try { try {
CloudRunnerLogger.log(`Creating job aws formation ${taskDefCloudFormation}`); CloudRunnerLogger.log(`Creating job aws formation`);
await CF.createStack(createStackInput).promise(); await CF.createStack(createStackInput).promise();
await CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise(); await CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise();
} catch (error) { } catch (error) {
@ -179,7 +179,7 @@ export class AWSJobStack {
}; };
if (CloudRunnerOptions.useCleanupCron) { if (CloudRunnerOptions.useCleanupCron) {
try { try {
CloudRunnerLogger.log(`Creating job cleanup formation ${CleanupCronFormation.formation}`); CloudRunnerLogger.log(`Creating job cleanup formation`);
await CF.createStack(createCleanupStackInput).promise(); await CF.createStack(createCleanupStackInput).promise();
await CF.waitFor('stackCreateComplete', { StackName: createCleanupStackInput.StackName }).promise(); await CF.waitFor('stackCreateComplete', { StackName: createCleanupStackInput.StackName }).promise();
} catch (error) { } catch (error) {