Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const {NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS} = require("@

let logOutput = '';

// DEBUG VERSION

const main = async () => {
try {
// Setup AWS clients
Expand Down Expand Up @@ -166,13 +168,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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "github-action-aws-ecs-run-task",
"name": "@simllll/github-action-aws-ecs-run-task",
"version": "1.4.10",
"description": "Run an AWS ECS Fargate task.",
"main": "index.js",
Expand Down