Skip to content

Commit

Permalink
Fix Invalid response cause Google pipelines exec to crash (2) nextflo…
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso authored and sivkovic committed Jun 6, 2019
1 parent fba45f7 commit 297e2c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class GooglePipelinesTaskHandler extends TaskHandler {
// the handler status has to be changed to RUNNING either
// if the operation is still running or it has completed
final result = executor.helper.checkOperationStatus(operation)
if( !result )
if( result == null )
return false
logEvents(result)

Expand Down Expand Up @@ -241,7 +241,7 @@ class GooglePipelinesTaskHandler extends TaskHandler {
log.trace "[GPAPI] Task created > $task.name - Request: $req"

operation = submitPipeline(req)
if( !operation )
if( operation == null )
throw new ProcessSubmitException("Failed to submit task with name: $task.name")
pipelineId = getPipelineIdFromOp(operation)
status = TaskStatus.SUBMITTED
Expand Down

0 comments on commit 297e2c9

Please sign in to comment.