[ 
https://issues.apache.org/jira/browse/BEAM-11377?focusedWorklogId=557334&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-557334
 ]

ASF GitHub Bot logged work on BEAM-11377:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Feb/21 21:46
            Start Date: 24/Feb/21 21:46
    Worklog Time Spent: 10m 
      Work Description: tysonjh commented on a change in pull request #14026:
URL: https://github.com/apache/beam/pull/14026#discussion_r582327604



##########
File path: release/src/main/groovy/mobilegaming-java-dataflow.groovy
##########
@@ -110,7 +110,14 @@ class LeaderBoardRunner {
     }
     InjectorThread.stop()
     LeaderBoardThread.stop()
-    t.run("gcloud dataflow jobs cancel \$(gcloud dataflow jobs list | grep 
${jobName} | grep Running | cut -d' ' -f1)")
+    t.run("""RUNNING_JOB=`gcloud dataflow jobs list | grep ${jobName} | grep 
Running | cut -d' ' -f1`
+if [ ! -z "\${RUNNING_JOB}" ] 
+  then 
+    gcloud dataflow jobs cancel \${RUNNING_JOB}
+  else 
+    echo "Job '${jobName}' is not running."
+fi 
+""")

Review comment:
       Jobs were finished/cancelled during my testing. I didn't see any in 
pending, there are a lot of sleeps/loops above but I suppose it could happen. 
We could search for 'Running\|Pending' if that makes sense.
   
   I'm not sure a retry for cancelling will be that helpful here. If the job 
isn't present in the list as Running, or Pending, it won't need cancelling 
right?
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 557334)
    Time Spent: 11h 10m  (was: 11h)

> beam_PostRelease_NightlySnapshot failing (connection reset fetching deps)
> -------------------------------------------------------------------------
>
>                 Key: BEAM-11377
>                 URL: https://issues.apache.org/jira/browse/BEAM-11377
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Kenneth Knowles
>            Assignee: Tyson Hamilton
>            Priority: P1
>              Labels: flake
>             Fix For: Not applicable
>
>          Time Spent: 11h 10m
>  Remaining Estimate: 0h
>
> https://ci-beam.apache.org/job/beam_PostRelease_NightlySnapshot/1195/
> {code}
> 03:05:12 [ERROR] Failed to execute goal on project word-count-beam: Could not 
> resolve dependencies for project org.example:word-count-beam:jar:0.1: Failed 
> to collect dependencies at 
> org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.27.0-SNAPSHOT 
> -> com.google.cloud:google-cloud-spanner:jar:2.0.2: Failed to read artifact 
> descriptor for com.google.cloud:google-cloud-spanner:jar:2.0.2: Could not 
> transfer artifact com.google.cloud:google-cloud-spanner:pom:2.0.2 from/to 
> central (https://repo.maven.apache.org/maven2): Connection reset -> [Help 1]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to