diff --git a/dist/index.js b/dist/index.js index 61bff0a..0455d07 100644 --- a/dist/index.js +++ b/dist/index.js @@ -56473,6 +56473,8 @@ const {NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS} = __nccwpck_ let logOutput = ''; +// DEBUG VERSION ! + const main = async () => { try { // Setup AWS clients @@ -56630,13 +56632,14 @@ const main = async () => { } try { - core.debug(`Waiting for task to be in running state. Waiting for ${taskStartMaxWaitTime} seconds.`); - await waitUntilTasksRunning({ + core.debug(`Waiting for task to be in running state. Waiting for ${taskStartMaxWaitTime} seconds. (taskCheckStateDelay = ${taskCheckStateDelay}, taskArn=${taskArn})`); + const waitECSTaskResult = await waitUntilTasksRunning({ client: ecs, maxWaitTime: taskStartMaxWaitTime, maxDelay: taskCheckStateDelay, minDelay: taskCheckStateDelay, }, {cluster, tasks: [taskArn]}); + core.debug(`waitECSTaskResult: ${waitECSTaskResult.state} / ${JSON.stringify(waitECSTaskResult)}`); } catch (error) { core.setFailed(`Task did not start successfully. Error: ${error.message}.`); process.exit(1); diff --git a/index.js b/index.js index 00c5967..3cacc2e 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const {NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS} = require("@ let logOutput = ''; -// DEBUG VERSION +// DEBUG VERSION ! const main = async () => { try {