ES /docs

PullTaskWorker::perform | error on 771599 - Mysql2::Error::TimeoutError: Lock wait timeout exceeded;

Service
cupixworks-worker
Occurrences
1
Status
Reported
Confidence
80%
Actionability
28%
Cluster ID
8a359e9a-d8ee-4ab3-ad4a-d78a0f1b77e7
First Seen
2026-04-23 08:17 UTC
Last Seen
2026-04-23 08:17 UTC
Actions

PullTaskWorker::perform | error on 771599 - Mysql2::Error::TimeoutError: Lock wait timeout exceeded;

What Happened#

2026-04-23 08:17:57Z에 cupixworks-worker 서비스의 PullTaskWorker가 AwsTask ID 771599에 대해 Mysql2::Error::TimeoutError: Lock wait timeout exceeded 에러를 발생시켰다. 동일 task에 대해 두 개의 PullTaskWorker 인스턴스가 08:15:15Z에 동시에 실행되어, 한쪽이 MySQL row lock을 획득한 상태에서 다른 쪽이 lock 대기 시간을 초과하여 실패한 것이다.

Quick Facts#

Field Value
exception.class Mysql2::Error::TimeoutError
exception.message Lock wait timeout exceeded; try restarting transaction
top_frame app/workers/pull_task_worker.rb:14
env production, us-west-2

Timeline#

  1. 08:04:27Z — ECS task 771599 pull 시작 (pull_started_at)
  2. 08:09:01Z — Cron 배치에서 task 771599 상태 PENDING → RUNNING 업데이트
  3. 08:09:07ZCupix::Cron::AwsTask.pull_pending가 15개 task 동시 pull (771599 포함)
  4. 08:13:39Z — PullTaskWorker 1차 실행 완료 (정상, saved_changes 없음)
  5. 08:14:04Z — ECS task 중지 (EssentialContainerExited)
  6. 08:15:15Z — PullTaskWorker 2건이 동일 task 771599에 대해 동시 실행 (request_id: fba7f9c9..., f5345c24...)
  7. 08:15:15Z — request A가 RUNNING → STOPPED 상태 변경 + save 시작 (after_save callback 포함)
  8. 08:17:19Z — request A 정상 완료
  9. 08:17:57Z — request B Lock wait timeout으로 실패 (약 2분 42초 대기)
  10. 08:17:57Z — Error Sweeper 감지

Scoring#

Confidence 80% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 17 code refs, 5 log queries
Code path explicitness 3/3 17 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 1/5 critical
Affected files 1/5 14 file(s)
Single repo 1/3 2 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