[ARVADOS-WORKBENCH2] updated: 1.2.0-190-g5163a70
Git user
git at public.curoverse.com
Wed Aug 29 10:07:33 EDT 2018
Summary of changes:
src/store/processes/process.ts | 5 +++++
1 file changed, 5 insertions(+)
via 5163a70c5624a52c802a37d66b806b5e718c4151 (commit)
from c798ba784db88b406d27f3783501ab2800f5719a (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 5163a70c5624a52c802a37d66b806b5e718c4151
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Wed Aug 29 16:06:58 2018 +0200
Add process status selector
Feature #14099
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/store/processes/process.ts b/src/store/processes/process.ts
index b3935ed..ff3125c 100644
--- a/src/store/processes/process.ts
+++ b/src/store/processes/process.ts
@@ -37,6 +37,11 @@ export const getSubprocesses = (uuid: string) => (resources: ResourcesState) =>
}, []);
};
+export const getProcessStatus = (process: Process) =>
+ process.container
+ ? process.container.state
+ : process.containerRequest.state;
+
const isSubprocess = (uuid: string) => (resources: ResourcesState) => (resource: Resource) =>
resource.kind === ResourceKind.CONTAINER_REQUEST
&& (resource as ContainerRequestResource).requestingContainerUuid === uuid;
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list