ES /docs

InvalidParameterException on task_id: arn:aws:ecs:us-west-2:619071347432:task/cupix-tesla-ece/48ecc8

Service
cupixvista-api-worker
Occurrences
166
Status
Reported
Confidence
80%
Actionability
44%
Cluster ID
3ee8ecbe-291b-4fc9-83c1-42a86ce7e587
First Seen
2026-07-01 02:55 UTC
Last Seen
2026-07-25 13:15 UTC
Actions

InvalidParameterException on task_id: arn:aws:ecs:us-west-2:619071347432:task/cupix-tesla-ece/48ecc8

What Happened#

2026-07-01 11:55 KST부터 cupixvista-api-worker(tesla repo, LAUNCH_MODE=CUPIXVISTA)에서 ECS task 48ecc8fc146c40e6b7f1da84a352577b에 대해 AwsTask#stop!을 호출할 때마다 InvalidParameterException: The referenced task was not found가 발생하고 있다. 해당 task 자체는 2026-07-01 10:45:32 KST에 이미 ECS 상에서 STOPPED 상태가 되었고, 이후 ECS retention window(약 1시간)가 만료되면서 describe/stop 대상에서 사라졌다. 그럼에도 Cupix::Cron::Job.clean_running_jobs 크론이 10분마다 같은 task를 반복적으로 stop 시도하고 있다.

Quick Facts#

Field Value
exception.class Aws::ECS::Errors::InvalidParameterException
exception.message The referenced task was not found
top_frame app/models/aws_task.rb:172 (rescue in stop!)
runtime Ruby on Rails (Sidekiq/whenever cron via cupixvista-api-worker)
env production, region us-west-2, cluster cupix-tesla-ece

Affected Teams#

Team / Domain Error Count Impact
cupixvista-api-worker (tesla) 6 (14일 retention 내, 10분 간격 반복) 사용자 기능 영향 없음. 하지만 error 로그 노이즈 및 stale DB row(aws_tasks.last_status='RUNNING') 발생

Timeline#

  1. 2026-07-01 10:38:28 KST — ECS task 48ecc8fc 생성(connectivity_at), family:cupix-skat-master-production-arm.
  2. 2026-07-01 10:45:32 KST — ECS가 stop_code=UserInitiated, stopped_reason="Task has been stopped by Tesla"로 task를 STOPPED 처리 (execution_stopped_at, stopped_at).
  3. 2026-07-01 11:05:29 KST 이후 10분 간격Cupix::Cron::Job.clean_running_jobs cron이 매 사이클마다 AwsTask#stop!을 재호출. 이 시점에는 ECS에 아직 stopped task가 남아 있어 resp.task 덤프가 로그에 그대로 찍힘 (last_status=STOPPED).
  4. 2026-07-01 11:55:27 KST — ECS가 stopped task를 purge. 이후 stop_task 호출은 InvalidParameterException: The referenced task was not found로 실패 (첫 first_seen).
  5. 2026-07-01 12:45:27 KST — 6회째 동일 에러(last_seen). 계속 재발생 중.

Scoring#

Confidence 80% · Actionability 44%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 20 code refs, 3 log queries
Code path explicitness 3/3 20 file:line refs
Log evidence 2/3 section, query
RCA structure 3/3 3/3 sections
Revision history 0/3 0 revision(s)
Agent execution 3/3 success

Actionability#

Dimension Score Detail
Fix complexity 5/5 trivial
Affected files 1/5 15 file(s)
Single repo 1/3 3 service(s)
Immediate actions 0/3 absent
Testability 0/3 no test info
External dependency 1/3 external deps found
Data migration 3/3 no migration