Skip to content

Passing query result to next action? #18

@gnudiff

Description

@gnudiff

I am trying to integrate sql query in my Orquestra workflow:

--
version: 1.0
name: Daily report
description: Get daily stats 
tasks:
  task1:
    action: sql.query
    input:
      connection: my_conn
      query: "SELECT ... 
                    <long running query>
                  "
    next:
      publish: data="<% result() %>"
      do: task2
  task2:
    action: "reports.act1"
    input:
      data: "<% ctx(data) %>"

And I get error:

  errors:
  - message: The spec is not type of list.

What gives?

act1 is just a simple python action which accepts data parameter and prints out its type and contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions