File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
src/simcore_service_director_v2 Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ async def get_task_log_file(
154154 comp_tasks_repo : Annotated [
155155 CompTasksRepository , Depends (get_repository (CompTasksRepository ))
156156 ],
157- ) -> TaskLogFileGet :
157+ ) -> TaskLogFileGet : # MATUS CHECK
158158 """Returns a link to download logs file of a give task.
159159 The log is only available when the task is done
160160 """
Original file line number Diff line number Diff line change 2626 RunningState .NOT_STARTED ,
2727 RunningState .WAITING_FOR_CLUSTER ,
2828 ): RunningState .WAITING_FOR_CLUSTER ,
29+ # if there are tasks waiting for resources, then the pipeline is also waiting for resources
30+ (
31+ RunningState .PUBLISHED ,
32+ RunningState .NOT_STARTED ,
33+ RunningState .WAITING_FOR_RESOURCES ,
34+ ): RunningState .WAITING_FOR_RESOURCES ,
2935 # if there are PENDING states that means the pipeline was published and is awaiting sidecars
3036 (
3137 RunningState .PENDING ,
Original file line number Diff line number Diff line change @@ -257,6 +257,15 @@ def fake_task(fake_task_file: Path) -> CompTaskAtDB:
257257 RunningState .WAITING_FOR_CLUSTER ,
258258 id = "published and waiting for cluster = waiting for cluster" ,
259259 ),
260+ pytest .param (
261+ [
262+ (RunningState .WAITING_FOR_RESOURCES ),
263+ (RunningState .PUBLISHED ),
264+ (RunningState .PUBLISHED ),
265+ ],
266+ RunningState .WAITING_FOR_RESOURCES ,
267+ id = "published and waiting for resources = waiting for resources" ,
268+ ),
260269 ],
261270)
262271def test_get_pipeline_state_from_task_states (
You can’t perform that action at this time.
0 commit comments