query ListTasksByOrchSha($workspace_id: bigint!, $run_limit: Int!, $killed: Boolean!, $sha: String!) {
    task(where: {
            workspace_id: {
                _eq:$workspace_id,
            },
            killed: {
                _in: [false, $killed],
            },
            event: {
                _contains: { extra_env_vars: { ORCH_SHA: $sha} }
            }
        },
        order_by: {updated_at: desc}
    ) {
        id
        name
        status
        flavor
        input_data
        subject
        task_type
        next_attempt
        workspace_id
        event
        killed
        created_at
        updated_at
        task_runs(limit: $run_limit) {
            pod_id
            status
            created_at
            updated_at
        }
    }
}
