Last active
May 20, 2024 19:20
-
-
Save kilonzi/12be80daa82d39ea2a9de65fc013bfc5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: sanda.broad.io/v1 | |
workflow: | |
name: updated_example_workflow_in_version_2 | |
description: This is an example workflow | |
version: 0.1.1 | |
environment: | |
- DATABASE_URL | |
- SECRET_KEY | |
- BASE_URL | |
jobs: | |
- id: create_workspace | |
name: create_workspace | |
uses: docker.io/spitfire:latest | |
entrypoint: create-workspace | |
timeout: 10 | |
resources: | |
cpu: 1 | |
memory: 1Gi | |
needs: [ ] | |
environment: | |
- DATABASE_URL | |
- SECRET_KEY | |
- FIRECLOUD_URL | |
inputs: | |
- name: workspace_name | |
type: str | |
default: "workspace-1" | |
outputs: | |
- name: workspace_name | |
type: str | |
- name: extract_data_from_single_cell_portal | |
image: ubuntu:latest | |
entrypoint: extract_data | |
needs: [ create_workspace ] | |
inputs: | |
- name: workspace_name | |
type: str | |
value: create_workspace.workspace_name | |
retries: 3, | |
outputs: | |
- name: files | |
type: list | |
- name: process_data | |
image: ubuntu:latest | |
entrypoint: extract_data | |
needs: [ create_workspace, extract_data_from_single_cell_portal] | |
scatter: [files] | |
inputs: | |
- name: workspace_name | |
type: str | |
value: create_workspace.workspace_name | |
- name: files | |
type: list | |
value: extract_data_from_single_cell_portal.files | |
retries: 3, | |
outputs: | |
- name: files | |
type: list | |
- name: send_email | |
image: ubuntu:latest | |
entrypoint: extract_data | |
needs: [ extract_data_from_single_cell_portal] | |
conditions: | |
- name: "check_success" | |
type: "success" | |
depends_on: "process_data" | |
- name: "check_run_status" | |
type: "run" | |
depends_on: "another_task" | |
expression: "another_task.status == 'completed' AND process_data.status == 'success'" | |
inputs: | |
- name: workspace_name | |
type: str | |
value: create_workspace.workspace_name | |
retries: 3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment