Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

nomad-jobspec plugin periodic and system job fixes #3963

Merged
merged 2 commits into from Oct 3, 2022

Conversation

paladin-devops
Copy link
Contributor

@paladin-devops paladin-devops commented Sep 30, 2022

Nomad periodic jobs don't have an "update" stanza, so we no longer check for canaries for such jobs. We also do not monitor a Nomad evaluation after the job is registered, because not all jobs (namely, periodic jobs) have an evaluation immediately after job registration. These changes allow periodic jobs to be registered using the jobspec plugin!

Additionally, we don't check for canaries if the job is of type system, because system jobs don't support canaries at this time.

Closes #2982.
Closes #3920.

Nomad periodic jobs don't have an "update" stanza, so we no longer check for canaries for such jobs. We also do not monitor a Nomad evaluation after the job is registered, because not all jobs (namely, periodic jobs) have an evaluation immediately after job registration.
System jobs don't use canaries, and thusly we don't check for canaries if the job being deployed is a system job.
@paladin-devops paladin-devops changed the title nomad-jobspec plugin periodic job support nomad-jobspec plugin periodic and system job fixes Sep 30, 2022
@paladin-devops paladin-devops merged commit 203dd0a into main Oct 3, 2022
@paladin-devops paladin-devops deleted the b-nomad-jobspec-periodic-jobs branch October 3, 2022 16:59
Copy link
Contributor

@demophoon demophoon left a comment

Choose a reason for hiding this comment

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

pulled this locally and ran with jobspec, looks great

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/0.10.x ecosystem Things related to waypoint interacting with external systems plugin/nomad plugin/nomad-jobspec plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad job type "system" causes panic in ODR Incomplete deployment of Periodic Nomad Jobspec jobs
3 participants