====== 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 π
==== β
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
batch,pointaddsub,--client-code,KASHO_SANZEN,--file-type,EC,--target-date,20260205
π 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