[arvados-workbench2] updated: 2.5.0-3-g78aad86d
git repository hosting
git at public.arvados.org
Mon Jan 9 21:09:41 UTC 2023
Summary of changes:
src/store/processes/processes-actions.ts | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
via 78aad86df4f113422f97632dd81a3a192a1a30ca (commit)
from 2cf3bd105cc73835f4c634a67ce73ede8adca597 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 78aad86df4f113422f97632dd81a3a192a1a30ca
Author: Stephen Smith <stephen at curii.com>
Date: Mon Jan 9 16:09:01 2023 -0500
15557: Improve error handling and resposiveness when starting copied workflows
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/store/processes/processes-actions.ts b/src/store/processes/processes-actions.ts
index 11a36e05..b28b943e 100644
--- a/src/store/processes/processes-actions.ts
+++ b/src/store/processes/processes-actions.ts
@@ -109,10 +109,14 @@ export const startWorkflow = (uuid: string) =>
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
try {
const process = await services.containerRequestService.update(uuid, { priority: 1, state: ContainerRequestState.COMMITTED });
- dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Process started', hideDuration: 2000, kind: SnackbarKind.SUCCESS }));
- return process;
+ if (process) {
+ dispatch<any>(updateResources([process]));
+ dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Process started', hideDuration: 2000, kind: SnackbarKind.SUCCESS }));
+ } else {
+ dispatch<any>(snackbarActions.OPEN_SNACKBAR({ message: `Failed to start process`, kind: SnackbarKind.ERROR }));
+ }
} catch (e) {
- throw new Error('Could not cancel the process.');
+ dispatch<any>(snackbarActions.OPEN_SNACKBAR({ message: `Failed to start process`, kind: SnackbarKind.ERROR }));
}
};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list