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

Support scheduled backups #32

Closed
bohdan-shulha opened this issue Jun 30, 2024 · 1 comment
Closed

Support scheduled backups #32

bohdan-shulha opened this issue Jun 30, 2024 · 1 comment
Labels
feat New feature or request
Milestone

Comments

@bohdan-shulha
Copy link
Contributor

bohdan-shulha commented Jun 30, 2024

Users will be able to specify the period of backup job launch.

Need to implement an execution of the specified schedule.

How do I see it right now:

  1. Users will specify the backup options on the service edit page.
  2. Ptah will create corresponding Docker Services (mode = job) with an initial scaling 0.
  3. Ptah's scheduler will put the 'scale service' task at the specified intervals to run the backup job.

The execution tracking will be out of the MVP scope, but, most probably, should have to be done via monitoring for the container's events: https://docs.docker.com/engine/api/v1.46/#tag/System/operation/SystemEvents

The ReplicatedJob creates a new container when the job starts and this container lives until the job is finished.

@bohdan-shulha bohdan-shulha added feat New feature or request triage and removed triage feat New feature or request labels Jun 30, 2024
@bohdan-shulha bohdan-shulha changed the title Support scheduled tasks Support scheduled backups Jul 7, 2024
@bohdan-shulha bohdan-shulha added this to the MVP milestone Jul 7, 2024
@bohdan-shulha
Copy link
Contributor Author

Replaced with a simpler to integrate process in #65.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant