Skip to content

Commit

Permalink
Merge pull request #26 from stormcat24/feature/api_interval
Browse files Browse the repository at this point in the history
update task interval 1 second
  • Loading branch information
Akinori Yamada committed Aug 11, 2015
2 parents d9ad748 + c03aadf commit 590de28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/stormcat24/ecs-formation/plan"
"github.com/stormcat24/ecs-formation/logger"
"github.com/aws/aws-sdk-go/service/ecs"
"time"
)

type TaskDefinitionController struct {
Expand Down Expand Up @@ -107,6 +108,7 @@ func (self *TaskDefinitionController) ApplyTaskDefinitionPlans(plans []*plan.Tas
if err != nil {
return []*ecs.RegisterTaskDefinitionOutput{}, err
}
time.Sleep(1 * time.Second)

outputs = append(outputs, result)
}
Expand Down

0 comments on commit 590de28

Please sign in to comment.