~rogpeppe/juju-core/385-runner-debug

« back to all changes in this revision

Viewing changes to worker/runner.go

  • Committer: Roger Peppe
  • Date: 2013-09-10 15:53:23 UTC
  • Revision ID: roger.peppe@canonical.com-20130910155323-hes46pdzbsj60rxm
worker: rename name to id in DebugRunnerActions interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
// events that take place.
31
31
var DebugRunnerActions interface {
32
32
        // Starting informs that the given runner has been asked to
33
 
        // start a worker with the given task name.
34
 
        Starting(r *Runner, name string)
 
33
        // start a worker with the given task id.
 
34
        Starting(r *Runner, id string)
35
35
        // Started informs that the given runner has started
36
 
        // to run the given worker with the given task name.
37
 
        Started(r *Runner, name string, worker Worker)
38
 
        // Stopped informs that the task with the given name
 
36
        // to run the given worker with the given task id.
 
37
        Started(r *Runner, id string, worker Worker)
 
38
        // Stopped informs that the task with the given id
39
39
        // in the given runner has stopped with the given error.
40
 
        Stopped(r *Runner, name string, err error)
 
40
        Stopped(r *Runner, id string, err error)
41
41
}
42
42
 
43
43
// Runner runs a set of workers, restarting them as necessary