Task Structure - dm03514/func-y-task-engine GitHub Wiki

---
max_timeout: 10000
name: single_http_request_test
version: "1"

events:
  - name: google_request
    event_fulfillment_strategy:
       type: poll.PollerFulfillment
       frequency_ms: 200
    initiator:
      method: get
      type: http.HTTPInitiator
      url: "http://google.com"
    transition_conditions:
      - type: assertions.Equal
        value_property: status_code
        to_equal: 200

Events are composed of a couple top level attributes:

  • events - an array of states. States array is ordered by which states occur first. The only way for a state to complete is for the transition_condition to be applyd without raising. Execution starts with the first state listed in the events array.
  • name
  • event_fulfillment_strategy -
  • transition_conditions - array - all conditions must be applyd without raising ConditionNotMet for the next state transition to occur. Each transition condition wraps the return value of the initiator function
  • initiator - this is executed as soon as the state is transitioned into