-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The packer template builds should be scheduled via the job-runner service. To do so we first need to extend the job runner architecture with a ScheduledJobs model that can be used to create new pending Jobs at the given times.
- Create a new Sequelize model/migration(s)
ScheduledJobs (id PK AUTOINCREMENT, schedule ???, command STRING). I am not sure what datatype schedule needs to be, perhaps STRING using cron-style schedules. This record will be read and when the schedule condition is met will create a "pending"Jobsrecord with the given command. - A system is needed to convert the
ScheduledJobstoJobs. This could be an extra step in thejob-runnerto, before checking for pending jobs, check for scheduled jobs whose conditions are met and queue them, then continue as normal - Implement a
ScheduledJobfor running the packer builds. This can use a Sequelize seed since all installations should include it. - The
commandused by theSheduledJobfor the packer builds should read all of it's configuration from the database directly (reminder that job commands will have full access to the create a container environment and models). This can be used to read theNodesmodel and use the API URL and keys for uploading. - The
Nodesmodel may need extended to includedefaultStoragewhich would be the storage that the container template would be uploaded to. In this case, the Nodes form will also need updated so administrators can configure that setting.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request