User Tools

Site Tools


aws:containers:ecs:run_batch

This is an old revision of the document!


Run batch manually on Staging (without waiting for cron)

If you don’t want to wait for the cron schedule and want to run the batch stg-integrations-kasho_sanzen-pointaddsub-pos immediately on Staging, follow the steps below 👇

This guide is divided into 2 cases:

With permission

Without permission

CASE 1️⃣: You HAVE permission to run ECS Run Task (fastest way)

✅ Step 1: Go to the ECS Cluster

AWS Console → ECS

Select Clusters

Choose cluster: stg-integrations

✅ Step 2: Run a new task

Open the Tasks tab

Click Run new task

✅ Step 3: Configure the task

Compute options

Launch type: FARGATE

Task definition

Family: stg-integrations-batch

Revision: Latest

Networking

Use the same settings as the scheduled tasks

VPC

Subnets

Security Group

✅ Step 4: Override Command (IMPORTANT)

In Advanced options / Container overrides:

Container: stg-integrations-batch

Command override:

 batch,pointaddsub,--client-code,KASHO_SANZEN,--file-type,POS 

👉 This is the exact command used by the scheduled *-pos task.

✅ Step 5: Run the task

Click Run task

The task will start immediately (no need to wait for cron)

✅ Step 6: Check logs

Option 1: ECS

ECS → Task → Logs

Option 2: CloudWatch

Log group:

/ecs/stg-integrations-batch
aws/containers/ecs/run_batch.1770008675.txt.gz · Last modified: by phong2018