Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1127 from tjmcs/tb/fix-task-create-and-disable
Browse files Browse the repository at this point in the history
Fixes #1113 & #1131 and Resolves #1126; improves task creation process in `snapctl`
  • Loading branch information
IRCody authored Aug 15, 2016
2 parents bc78f4b + e8a77d3 commit 4027d4a
Show file tree
Hide file tree
Showing 8 changed files with 266 additions and 120 deletions.
9 changes: 2 additions & 7 deletions cmd/snapctl/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ package main

import "github.com/codegangsta/cli"

const (
DefaultMaxFailures = 10
)

var (

// Main flags
Expand Down Expand Up @@ -126,10 +122,9 @@ var (
Name: "deadline",
Usage: "The deadline for the task to be killed after started if the task runs too long (All tasks default to 5s)",
}
flTaskMaxFailures = cli.IntFlag{
flTaskMaxFailures = cli.StringFlag{
Name: "max-failures",
Usage: "The number of consecutive failures before snap disable the task (Default 10 consective failures)",
Value: DefaultMaxFailures,
Usage: "The number of consecutive failures before snap disables the task",
}

// metric
Expand Down
Loading

0 comments on commit 4027d4a

Please sign in to comment.