Skip to content

Commit 7d51a22

Browse files
authored
Merge pull request #2 from simllll/debug
Update index.js
2 parents 98e242c + 0e23f48 commit 7d51a22

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56473,6 +56473,8 @@ const {NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS} = __nccwpck_
5647356473

5647456474
let logOutput = '';
5647556475

56476+
// DEBUG VERSION !
56477+
5647656478
const main = async () => {
5647756479
try {
5647856480
// Setup AWS clients
@@ -56630,13 +56632,14 @@ const main = async () => {
5663056632
}
5663156633

5663256634
try {
56633-
core.debug(`Waiting for task to be in running state. Waiting for ${taskStartMaxWaitTime} seconds.`);
56634-
await waitUntilTasksRunning({
56635+
core.debug(`Waiting for task to be in running state. Waiting for ${taskStartMaxWaitTime} seconds. (taskCheckStateDelay = ${taskCheckStateDelay}, taskArn=${taskArn})`);
56636+
const waitECSTaskResult = await waitUntilTasksRunning({
5663556637
client: ecs,
5663656638
maxWaitTime: taskStartMaxWaitTime,
5663756639
maxDelay: taskCheckStateDelay,
5663856640
minDelay: taskCheckStateDelay,
5663956641
}, {cluster, tasks: [taskArn]});
56642+
core.debug(`waitECSTaskResult: ${waitECSTaskResult.state} / ${JSON.stringify(waitECSTaskResult)}`);
5664056643
} catch (error) {
5664156644
core.setFailed(`Task did not start successfully. Error: ${error.message}.`);
5664256645
process.exit(1);

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS} = require("@
99

1010
let logOutput = '';
1111

12-
// DEBUG VERSION
12+
// DEBUG VERSION !
1313

1414
const main = async () => {
1515
try {

0 commit comments

Comments
 (0)