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

Nomad Constructor Jobs and Dispatch #2128

Merged
merged 27 commits into from
Jan 5, 2017
Merged

Nomad Constructor Jobs and Dispatch #2128

merged 27 commits into from
Jan 5, 2017

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Dec 19, 2016

This PR introduces:

  • Nomad Constructor Jobs which act as batch job templates
  • nomad dispatch command and API to create an instance of a constructor job.

Copy link
Contributor

@jippi jippi left a comment

Choose a reason for hiding this comment

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

this look super amazing

}
alloc.Job.Constructor = &structs.ConstructorConfig{}

// Add an encrypted payload
Copy link
Contributor

Choose a reason for hiding this comment

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

is it encrypted? isn't snappy a compression library?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good catch!


func (c *JobDispatchCommand) Help() string {
helpText := `
Usage: nomad job dispatch [options] <constructor> [input source]
Copy link
Contributor

Choose a reason for hiding this comment

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

oh, this is super cool! :)


// Check that we got exactly one node
args = flags.Args()
if l := len(args); l < 1 || l > 2 {
Copy link
Contributor

Choose a reason for hiding this comment

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

why this logic rather than l != 1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can be one or two but no less and no more :)

Copy link
Contributor

Choose a reason for hiding this comment

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

the comment says "exactly one node" ? :)

@dadgar dadgar merged commit 248c069 into master Jan 5, 2017
@dadgar dadgar deleted the f-dispatch branch January 5, 2017 21:22
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants