Skip to content

fix: cosmos3 worker.py /opt/app path + CodeQL except:pass (follow-up to #14)#19

Merged
Johan-de-R merged 1 commit into
mainfrom
johan/cosmos3-framework-worker
Jul 9, 2026
Merged

fix: cosmos3 worker.py /opt/app path + CodeQL except:pass (follow-up to #14)#19
Johan-de-R merged 1 commit into
mainfrom
johan/cosmos3-framework-worker

Conversation

@Johan-de-R

Copy link
Copy Markdown

Post-merge follow-up to #14, from the prod rollout.

  • Dockerfile: place worker.py at /opt/app + WORKDIR /opt/app. MM2's dynamo deployment runs python3 worker.py with workingDir=/opt/app; the prior /workspace location made every prod pod fail (python3: can't open '/opt/app/worker.py'). This is the fix behind the fw-v3 image now serving prod.
  • worker.py: replace except ValueError: pass in Cosmos3VideoRequest.resolve() with a log.warning (GitHub Advanced Security / CodeQL empty-except finding).

Prod Cosmos3-Nano is live on fw-v3 / B200 / checkpoint fea6e03, verified end-to-end (clean 720p through the prod API).

🤖 Generated with Claude Code

Two post-merge follow-ups from the prod rollout:
- Dockerfile: COPY worker.py to /opt/app/worker.py + WORKDIR /opt/app. MM2's
  dynamo deployment runs 'python3 worker.py' with workingDir=/opt/app, so the
  worker MUST be there — the prior /workspace location made every prod pod
  crash-loop (python3: can't open /opt/app/worker.py). This is the fix behind
  the fw-v3 rebuild that's now serving prod.
- worker.py: replace 'except ValueError: pass' in Cosmos3VideoRequest.resolve()
  with a log.warning (GitHub Advanced Security / CodeQL empty-except finding).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Johan-de-R Johan-de-R changed the title cosmos3: fix worker.py /opt/app path + CodeQL except:pass (follow-up to #14) fix: cosmos3 worker.py /opt/app path + CodeQL except:pass (follow-up to #14) Jul 9, 2026
@github-actions github-actions Bot added the fix label Jul 9, 2026
@Johan-de-R Johan-de-R merged commit f69d5f8 into main Jul 9, 2026
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant