Skip to content
Snippets Groups Projects
Unverified Commit 6ac11e00 authored by Shenghang Tsai's avatar Shenghang Tsai Committed by GitHub
Browse files

prevent endless loop (#5534)


* prevent endless loop

* add timeout 2 hours to prevent exhaust machine

Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 80acea4b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ jobs:
if: github.ref == 'refs/heads/master' || (github.event.pull_request.draft == false && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot'))
runs-on: ${{ matrix.os }}
needs: [cancel_previous]
timeout-minutes: 120
strategy:
fail-fast: false
max-parallel: 3
......
......@@ -23,7 +23,8 @@ def convert_name_sapce(python_file):
)
with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as pool:
pool.map(convert_name_sapce, single_client_python_files)
pool.close()
pool.join()
if __name__ == "__main__":
with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as pool:
pool.map(convert_name_sapce, single_client_python_files)
pool.close()
pool.join()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment