Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radix scheduled jobs should use volumeMount corresponding to its deployment configuration #1266

Open
satr opened this issue Jan 10, 2025 · 0 comments
Labels
💡 feature request New feature or request

Comments

@satr
Copy link
Contributor

satr commented Jan 10, 2025

When Radix app's job component uses volumeMount its possible to have at the same time in the existing job/batch history jobs and batches, which where run with different volumeMounts configuration (due to different Radix deployments they are allocated to). Re-run jobs (with its Radix deployment) with previous volumeMount configuration should use this configuration.

  1. Deploy a job component with a configured volumeMount
  2. Run one or multiple batches or jobs
  3. Change the volumeMount configuration related to the persistent volume or persistent volume claim (e.g. change AccessMode, path does not affect it)
  4. Deploy the application with this changed volumeMount configuration - new Persistent volume clam (pvc) and persistent volume (pv) are created, previous pvc and pv remain existing while Kubernetes jobs and pods for previously ran job or batch exist
  5. Run one or multiple batches or jobs - new jobs and its pods use new created pvc and pv
  6. Re-run jobs or batches for previouse deployment (with previous volumeMount configuration)

DoD

  • re-ran jobs or batches (and its Kubernetes job's and pods) uses previous pvc and pv (or re-create them if they do not exist with previous deployment volumeMount configuration). Jobs running with latest deployment do not use these "old configuration" pvc and pv.
  • when account name and key where changed between runs, only lates (existing) name/key are used by all jobs.
@satr satr added the 💡 feature request New feature or request label Jan 10, 2025
@satr satr changed the title Radix scheduled jobs should use volumeMount corresponding its deployment Radix scheduled jobs should use volumeMount corresponding to its deployment configuration Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant