Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1728

Pegasus EM - Support HTTP file watch

XMLWordPrintable

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • panorama
    • Affects Version/s: 5.0.0
    • Component/s: Ensemble Manager
    • None

      Add support for http file watch on Pegasus-EM triggering functionality.

      Ryan's instructions:
      1) Create a command object just like this one, then add it to commands here.
      2) Add the route in views.py just like this one.
      3) Add something like HTTP = "HTTP" to TriggerType here.
      4) Create the trigger object in trigger.py to do the heavy lifting just like this.
      In a nutshell, when you create a trigger (issue the CLI command), a request is sent to the service (running flask process). The service (in the route you’ve added), will create the trigger object with a READY state and add it to the database. The TriggerManager process will periodically polling that db and when it sees a READY trigger object, it will set the state to RUNNING, and start your custom trigger class, which should inherit from TriggerThread .

            Assignee:
            georgpap George Papadimitriou
            Reporter:
            georgpap George Papadimitriou
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: