From 55c1e265e8b274ee73c6e1b9e9a59cb44db7fe84 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Jun 2018 04:12:42 +0200 Subject: fetch task worksssssss --- app/client/system/system.reducer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/system/system.reducer.js') diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js index c20bf93..132923b 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -175,10 +175,10 @@ const systemReducer = (state = systemInitialState, action) => { stderr: "", } case types.task.task_finish: - if (state.runner.cpu.task.uuid === action.task.uuid) { + if (action.task === 'cpu' || state.runner.cpu.task.uuid === action.task.uuid) { processor = 'cpu' } - else if (state.runner.gpu.task.uuid === action.task.uuid) { + else if (action.task === 'gpu' || state.runner.gpu.task.uuid === action.task.uuid) { processor = 'gpu' } else { processor = null -- cgit v1.2.3-70-g09d2