git-repo/subcmds
Josip Sokcevic 71122f941f sync: Handle race condition when reading active jobs
It's possible that number of jobs is more than 0 when we
check length, but in the meantime number of jobs drops to
0. In that case, we are working with float(inf) which
causes other problems

Bug: 284383869
Change-Id: I5d070d1be428f8395df7fde8ca84866db46f2100
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/375134
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Tested-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2023-05-26 15:50:20 +00:00
..
__init__.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
abandon.py sync: Show elapsed time for the longest syncing project 2023-05-18 18:10:24 +00:00
branches.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
checkout.py sync: Show elapsed time for the longest syncing project 2023-05-18 18:10:24 +00:00
cherry_pick.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
diff.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
diffmanifests.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
download.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
forall.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
gitc_delete.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
gitc_init.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
grep.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
help.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
info.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
init.py Add envar to replace shallow clones with partial 2023-05-25 22:37:04 +00:00
list.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
manifest.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
overview.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
prune.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
rebase.py [git_trace2] Add logs for critical cmds 2023-05-17 18:06:14 +00:00
selfupdate.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
smartsync.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
stage.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
start.py sync: Show elapsed time for the longest syncing project 2023-05-18 18:10:24 +00:00
status.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
sync.py sync: Handle race condition when reading active jobs 2023-05-26 15:50:20 +00:00
upload.py upload: use f-string 2023-05-25 17:12:18 +00:00
version.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00