Last active
August 14, 2019 15:30
-
-
Save crobby/6b1c4ff9d69444c24556c7777e535f76 to your computer and use it in GitHub Desktop.
argo workflow that includes our health predictor model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: healthpredict | |
spec: | |
entrypoint: health-workflow | |
arguments: | |
parameters: | |
- name: inputdata | |
value: 75:200 | |
templates: | |
- name: echo | |
inputs: | |
parameters: | |
- name: message | |
container: | |
image: registry.access.redhat.com/ubi8 | |
command: [echo, "{{inputs.parameters.message}}"] | |
- name: healthpredict | |
inputs: | |
parameters: | |
- name: inputdata | |
container: | |
env: | |
- name: APP_FILE | |
value: predict_health.py | |
- name: INPUT_DATA | |
value: "{{inputs.parameters.inputdata}}" | |
image: quay.io/croberts/argohealth | |
imagePullPolicy: Always | |
- name: health-workflow | |
dag: | |
tasks: | |
- name: Collect-User-Data | |
template: echo | |
arguments: | |
parameters: [{name: message, value: Collect-CSV-Data}] | |
- name: Health-Prediction | |
dependencies: [Collect-User-Data] | |
arguments: | |
parameters: | |
- name: inputdata | |
value: "{{workflow.parameters.inputdata}}" | |
template: healthpredict | |
- name: Make-Super-Smart-Recommendation | |
dependencies: [Health-Prediction] | |
template: echo | |
arguments: | |
parameters: [{name: message, value: Maybe lay off the pizza}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment