Skip to content

fix(k8s): avoid cron crashes from supercronic reaper bug#4102

Merged
mmabrouk merged 2 commits intorelease/v0.95.3from
fix/k8s-supercronic-reaper
Apr 2, 2026
Merged

fix(k8s): avoid cron crashes from supercronic reaper bug#4102
mmabrouk merged 2 commits intorelease/v0.95.3from
fix/k8s-supercronic-reaper

Conversation

@mmabrouk
Copy link
Copy Markdown
Member

@mmabrouk mmabrouk commented Apr 1, 2026

Summary

  • bump supercronic from v0.2.33 to v0.2.36 in the OSS and EE API runtime Dockerfiles to pick up the upstream reaper fix
  • harden both the Helm cron deployment and the Railway cron entrypoints to invoke /usr/local/bin/supercronic explicitly
  • bump the Helm chart version to 0.1.4

Closes #4062.

Validation

  • helm lint hosting/helm/agenta-oss
  • helm template agenta-cron-fix hosting/helm/agenta-oss --set secrets.agentaAuthKey=test-auth --set secrets.agentaCryptKey=test-crypt --set secrets.postgresPassword=test-postgres
  • docker build -f api/oss/docker/Dockerfile.gh -t agenta-api:supercronic-fix-local api
  • timeout 15s docker run --rm --entrypoint supercronic agenta-api:supercronic-fix-local /app/crontab
  • docker build -f api/ee/docker/Dockerfile.gh -t agenta-api-ee:supercronic-fix-local api
  • timeout 15s docker run --rm --entrypoint supercronic agenta-api-ee:supercronic-fix-local /app/crontab
  • fresh Helm install on k3s using imported local API images for OSS and EE; verified both cron pods reached Running, had restart count 0, and executed scheduled jobs with command [\"/usr/local/bin/supercronic\", \"/app/crontab\"]
  • docker build -f hosting/railway/oss/cron/Dockerfile -t agenta-railway-cron:supercronic-fix hosting/railway/oss/cron
  • timeout 15s docker run --rm agenta-railway-cron:supercronic-fix after retagging the local fixed API image as ghcr.io/agenta-ai/agenta-api:latest; verified Railway cron starts successfully with /usr/local/bin/supercronic

Open with Devin

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 1, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Apr 1, 2026 3:29pm

Request Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@dosubot dosubot bot added dependencies Dependencies devops labels Apr 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-04-02T09:21:58.295Z

@mmabrouk mmabrouk requested a review from jp-agenta April 1, 2026 15:05
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Apr 1, 2026
@mmabrouk mmabrouk changed the base branch from main to release/v0.95.3 April 2, 2026 09:21
@mmabrouk mmabrouk merged commit 87d676a into release/v0.95.3 Apr 2, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependencies devops size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Cron container fails in self-hosted Helm deployment because supercronic is invoked without an absolute path

2 participants