Skip to content

Commit

Permalink
CI/travis/jobs_running_cnt.py: count created states as well
Browse files Browse the repository at this point in the history
Previously we were just counting `started` states, but it seems that
Travis-CI has a `created` state for jobs, which is before the `started`
state.
This means some builds were triggering before the entire job group would
finish.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Feb 14, 2019
1 parent ed5ddb2 commit f06a730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CI/travis/jobs_running_cnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

jobs_running = 0
for job in json_r['jobs']:
if (job['state'] == 'started'):
if (job['state'] in [ 'started', 'created' ]):
jobs_running += 1

print (jobs_running)

0 comments on commit f06a730

Please sign in to comment.