If task_info is used instead of executor_info (see here), then executor() return value is None, which makes the return value of needs_observer()True. This causes Mesos environment variables to not be set.
Is this the expected behaviour? It does not seem to be, because for me specifying task_info implies I want to create a new executor to work with it, rather than attaching to an existing one.
Also, the documentation makes reference to TaskInfo rather than ExecutorInfohere, which seems to suggest that this is the preferred way.
If
task_info
is used instead ofexecutor_info
(see here), thenexecutor()
return value isNone
, which makes the return value ofneeds_observer()
True
. This causes Mesos environment variables to not be set.The code for that can be found here.
Is this the expected behaviour? It does not seem to be, because for me specifying
task_info
implies I want to create a new executor to work with it, rather than attaching to an existing one.Also, the documentation makes reference to
TaskInfo
rather thanExecutorInfo
here, which seems to suggest that this is the preferred way.