Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0
Description
I am starting to use the new Operator event subscription API to get notified of task changes. The initial TASK_STAGING event has a good amount of information, but unfortunately future events like TASK_RUNNING include almost no metadata. This means that any task information that cannot be determined until the task launches (in my particular case, the IP address assigned by the Docker containerizer) is not available through the event stream.
Here is a gist of a single task that was launched, comparing the information in 'state.json' vs the subscribed events:
https://gist.github.com/stevenschlansker/c1d32aa9ce37a73f9c4d64347397d3b8
Note particularly how the IP address never shows in the event stream.
Task updates should expose the task information that changed. If this is too onerous, maybe the subscription call can take optional sets of data to include, with the first one being additional task metadata.
A possible workaround is to use the task events to fetch 'state.json' separately, but this is inherently racy and totally undermines the utility of the event stream api.
Attachments
Issue Links
- contains
-
MESOS-6066 Operator SUBSCRIBE api should include timestamps
- Accepted