Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Aviso can also post events to a AWS Simple Notification Service (SNS) topic. See the relevant documentation page for more details: https://pyaviso.readthedocs.io/en/latest/reference/triggers.html#post

Combining multiple trigger types into sequence

An example of the triggers block with multiple sequence of triggers is given below:

Code Block
languageyml
triggers:
  - type: echo
  - type: log
    path: testLog.log
  - type: command
    working_dir: $HOME/aviso/examples
    command: ./script.sh --stream ${request.stream} --date ${request.date} --time ${request.time} --step ${request.step}
    environment:
      STEP: ${request.step}
      TIME: "The time is ${request.time}"


Aviso as a Python API

Aviso can be used as a Python API. This is intended for users that want to integrate Aviso in a bigger workflow written in Python or that simply have their trigger defined as a Python function. Below an example of a python script that defines a function to be executed once a notification is received, creates a listener that references to this function trigger and finally passes it to aviso to execute.

...