Skip to content

handlerOn + http executor #96

@timukas

Description

@timukas

Hi,

Using latest blackdagger and somehow stuck with combining handlers with http executor

My DAG looks like this:

steps:
- name: Check 1
  description: This is 1st step
  command: bash
  script: |
    id 
  output: OUT1
handlerOn:
  success:
    command: "POST ${CALLBACK_URL}"
    executor:
      type: http
      config:
        headers:
          Content-Type: application/json
        body: |
          { "status": "COMPLETED" }
  failure:
    command: "POST ${CALLBACK_URL}"
    executor:
      type: http
      config:
        headers:
          Content-Type: application/json
        body: |
          { "status": "FAILED" }


Am i missing something in above example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions