Updated thrift API to the latest in the Aurora respository.
Added new monitors for watching number of instances get to a certain count using polling. Added new commands to sample client which give some statistics.
This commit is contained in:
parent
01b700554a
commit
928fc42fc2
12 changed files with 1182 additions and 668 deletions
6
job.go
6
job.go
|
@ -40,6 +40,7 @@ type Job interface {
|
|||
TaskConfig() *aurora.TaskConfig
|
||||
IsService(isService bool) Job
|
||||
InstanceCount(instCount int32) Job
|
||||
GetInstanceCount() int32
|
||||
MaxFailure(maxFail int32) Job
|
||||
}
|
||||
|
||||
|
@ -155,6 +156,11 @@ func (j AuroraJob) InstanceCount(instCount int32) Job {
|
|||
return j
|
||||
}
|
||||
|
||||
// How many instances of the job to run
|
||||
func (j AuroraJob) GetInstanceCount() int32 {
|
||||
return j.jobConfig.InstanceCount
|
||||
}
|
||||
|
||||
// Restart the job's tasks if they fail
|
||||
func (j AuroraJob) IsService(isService bool) Job {
|
||||
j.jobConfig.TaskConfig.IsService = isService
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue