Skip to content

Commit

Permalink
update plex job publisher spec for bacalhau v1.1 (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
acashmoney committed Oct 5, 2023
1 parent ae574a8 commit 26aa88c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/bacalhau/bacalhau.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func CreateBacalhauJobV2(inputs map[string]string, container, cmd, selector stri
}
job.Spec.Engine = model.EngineDocker
job.Spec.Docker.Image = container
job.Spec.Publisher = model.PublisherIpfs
job.Spec.PublisherSpec = model.PublisherSpec{
Type: model.PublisherIpfs,
}
job.Spec.Docker.Entrypoint = []string{"/bin/bash", "-c", cmd}
job.Spec.Annotations = annotations
job.Spec.Timeout = float64(maxTime * 60)
Expand Down Expand Up @@ -86,7 +88,9 @@ func CreateBacalhauJob(cid, container, cmd, selector string, maxTime, memory int
}
job.Spec.Engine = model.EngineDocker
job.Spec.Docker.Image = container
job.Spec.Publisher = model.PublisherIpfs
job.Spec.PublisherSpec = model.PublisherSpec{
Type: model.PublisherIpfs,
}
job.Spec.Docker.Entrypoint = []string{"/bin/bash", "-c", cmd}
job.Spec.Annotations = annotations
job.Spec.Timeout = float64(maxTime * 60)
Expand Down

0 comments on commit 26aa88c

Please sign in to comment.