summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-03-31 16:54:11 +0100
committerNick White <git@njw.name>2020-03-31 16:54:11 +0100
commitcb126a80cfa8502a582ee651f9e45c3b0d6f79f7 (patch)
tree47f474e2c2063a6542f097fae19638bc64cd19a2
parentce660e11c606e123b4ab6c75bd86babe2e5e6a2b (diff)
Disable autoshutdown by default for bookpipeline, and update to ami 0.11 (which reenables it for spot instances)
-rw-r--r--aws.go2
-rw-r--r--cmd/bookpipeline/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/aws.go b/aws.go
index 1fbb68b..ecea193 100644
--- a/aws.go
+++ b/aws.go
@@ -447,7 +447,7 @@ func (a *AwsConn) StartInstances(n int) error {
IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
Arn: aws.String("arn:aws:iam::557852942063:instance-profile/pipeliner"),
},
- ImageId: aws.String("ami-03b8203f86b8db97f"),
+ ImageId: aws.String("ami-0bc6ef6900f6da5d3"),
InstanceType: aws.String("m5.large"),
SecurityGroupIds: []*string{
aws.String("sg-0be8a3ab89e7136b9"),
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go
index dce1586..7b45541 100644
--- a/cmd/bookpipeline/main.go
+++ b/cmd/bookpipeline/main.go
@@ -675,7 +675,7 @@ func main() {
noocr := flag.Bool("no", false, "disable ocr")
noocrpg := flag.Bool("nop", false, "disable ocr on individual pages")
noanalyse := flag.Bool("na", false, "disable analysis")
- autoshutdown := flag.Bool("shutdown", true, "automatically shut down if no work has been available for 5 minutes")
+ autoshutdown := flag.Bool("shutdown", false, "automatically shut down if no work has been available for 5 minutes")
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), usage)