cleanup local pipeline, log aws formation
parent
1f33da69fe
commit
aae3fd7257
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue