[autotest]Use multi-processes for gs_offloader to handle SIGALRM properly
Use chromite.lib.parallel.BackgroundTaskRunner to run uploading jobs
with multi-processes. Previously threading was used. However it broke
the timeout feature that uses SIGALRM to interrupt a hanging gsutil.
By switching to processes, the signal can be recieved properly by
each subprocess.
BUG=chromium:221434
TEST=Used a short TIMEOUT and ran the script locally. Confirm that the
signal was handled properly.
DEPLOY=gs_offloader
Change-Id: Ia4a7adc24bd3cf862c913bb627a16172bc650007
Reviewed-on: https://gerrit.chromium.org/gerrit/47671
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
1 file changed