Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2622

Document the semantic change in decorator return values

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.23.0
    • documentation
    • 1

    Description

      In order to enable decorator modules to remove metadata (environment variables or labels), we changed the meaning of the return value for decorator hooks.

      The Result<T> return values means:

      State Before After
      Error Error is propagated to the call-site No change
      None The result of the decorator is not applied No change
      Some The result of the decorator is appended The result of the decorator overwrites the final labels/environment object

      Attachments

        Activity

          People

            nnielsen Niklas Quarfot Nielsen
            nnielsen Niklas Quarfot Nielsen
            Adam B Adam B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: