File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ job-defaults:
3838jobs :
3939 chunk :
4040 description : ' docker-worker test chunk'
41+ chunks : 5
4142 run :
4243 command : ./test/docker-worker-test
Original file line number Diff line number Diff line change @@ -109,17 +109,19 @@ def parameterize_mounts(config, jobs):
109109
110110
111111@transforms .add
112- def docker_worker_chunk (config , jobs ):
113- total_chunks = 5
114- for job in jobs :
112+ def docker_worker_chunk (config , tasks ):
113+ for task in tasks :
114+ total_chunks = task . pop ( "chunks" , 5 )
115115 for chunk in range (1 , total_chunks + 1 ):
116- c_task = copy .deepcopy (job )
116+ c_task = copy .deepcopy (task )
117117 c_task ["name" ] += f"-{ chunk } "
118118 c_task ["description" ] += f" #{ chunk } "
119119 c_task ["run" ]["command" ] += f" --this-chunk { chunk } --total-chunks { total_chunks } "
120120
121- # include release-publish dependency in the case of a release
122- if config .params ["tasks_for" ] == "github-push" :
123- c_task ["dependencies" ] = dict (release = "release-publish" )
121+ # TODO: uncomment this block to add dependency to the release-publish
122+ # task once we combine the two task graphs into one during release.
123+ # # include release-publish dependency in the case of a release
124+ # if config.params["tasks_for"] == "github-push":
125+ # c_task["dependencies"] = dict(release="release-publish")
124126
125127 yield c_task
You can’t perform that action at this time.
0 commit comments