Skip to content

Plugin structure#3

Merged
areed merged 1 commit intoreplicatedcom:masterfrom
areed:areed/ch2395/task-interface
Oct 18, 2017
Merged

Plugin structure#3
areed merged 1 commit intoreplicatedcom:masterfrom
areed:areed/ch2395/task-interface

Conversation

@areed
Copy link
Copy Markdown

@areed areed commented Oct 12, 2017

No description provided.

Comment thread plans/util.go Outdated

// add an error to every result, returning the results argument
// skips results that already have an error
func resultsWithErr(err error, results []types.Result) []types.Result {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

{{ with .ProcessCountRunning }}Running Processes: {{ .}}{{ end }}
{{ with .ProcessCountTotal }}Total Processes: {{ . }}{{ end }}`

func PlanLoadAverage(spec types.Spec) []types.Task {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is great

@areed areed changed the title WIP areed/ch2395/task interface Plugin structure Oct 17, 2017
@areed areed requested a review from laverya October 17, 2017 23:18
Copy link
Copy Markdown
Contributor

@laverya laverya left a comment

Choose a reason for hiding this comment

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

Structure all looks good. We can fix the unit tests and reimplement per-task timeouts later

Parse yaml to get specs
Planners from plugins convert specs to tasks
Exec routine manages concurrency
Plans produce data, transform, and write files
@areed areed merged commit 784ec0d into replicatedcom:master Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants