integration/internal/swarm/states.go
Function JobComplete
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func JobComplete(ctx context.Context, client client.CommonAPIClient, service swarmtypes.Service) func(log poll.LogT) poll.Result {
filter := filters.NewArgs(filters.Arg("service", service.ID))
var jobIteration swarmtypes.Version
if service.JobStatus != nil {