Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2780)

Issue 9643043: worker: new Runner type

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rog
Modified:
10 years, 11 months ago
Reviewers:
Danilo, mp+165108, TheMue
Visibility:
Public.

Description

worker: new Runner type This means that we can restart workers without taking down all other workers. It also enables us to dynamically manage a set of workers, paving the way for some of the multitenancy work that's on the horizon. We don't use it yet - in an upcoming CL this will replace runTasks in jujud. https://code.launchpad.net/~rogpeppe/juju-core/304-jujud-tasks-package/+merge/165108 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/jujud/tasks: new package #

Total comments: 25

Patch Set 3 : cmd/jujud/tasks: new package #

Patch Set 4 : cmd/jujud/tasks: new package #

Patch Set 5 : worker: new Runner type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A worker/runner.go View 1 2 1 chunk +234 lines, -0 lines 0 comments Download
A worker/runner_test.go View 1 2 1 chunk +296 lines, -0 lines 0 comments Download

Messages

Total messages: 9
rog
Please take a look.
10 years, 11 months ago (2013-05-22 13:04:35 UTC) #1
TheMue
Nice work, mostly LGTM, only small comments. https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode32 cmd/jujud/tasks/runner.go:32: isFatal func(error) ...
10 years, 11 months ago (2013-05-22 13:21:52 UTC) #2
rog
https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode57 cmd/jujud/tasks/runner.go:57: func NewRunner(isFatal func(error) bool, moreImportant func(err0, err1 error) bool) ...
10 years, 11 months ago (2013-05-22 13:31:59 UTC) #3
Danilo
This looks pretty good in general. I've got a bunch of comments though (mostly trivial ...
10 years, 11 months ago (2013-05-22 13:39:15 UTC) #4
TheMue
https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode57 cmd/jujud/tasks/runner.go:57: func NewRunner(isFatal func(error) bool, moreImportant func(err0, err1 error) bool) ...
10 years, 11 months ago (2013-05-22 13:42:14 UTC) #5
rog
https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode55 cmd/jujud/tasks/runner.go:55: // (determined by calling moreImportant) will be returned from ...
10 years, 11 months ago (2013-05-22 13:58:19 UTC) #6
Danilo
Thanks for responding, this LGTM. https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode152 cmd/jujud/tasks/runner.go:152: // start function. It ...
10 years, 11 months ago (2013-05-22 14:34:41 UTC) #7
rog
Please take a look. https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go File cmd/jujud/tasks/runner.go (right): https://codereview.appspot.com/9643043/diff/2001/cmd/jujud/tasks/runner.go#newcode1 cmd/jujud/tasks/runner.go:1: package tasks On 2013/05/22 13:39:16, ...
10 years, 11 months ago (2013-05-23 18:32:16 UTC) #8
rog
10 years, 11 months ago (2013-05-23 18:47:01 UTC) #9
*** Submitted:

worker: new Runner type

This means that we can restart workers without
taking down all other workers. It also enables us
to dynamically manage a set of workers,
paving the way for some of the multitenancy work
that's on the horizon.

We don't use it yet - in an upcoming CL this
will replace runTasks in jujud.

R=TheMue, Danilo
CC=
https://codereview.appspot.com/9643043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b