mesos / chronos

Fault tolerant job scheduler for Mesos which handles dependencies and ISO8601 based schedules
http://mesos.github.io/chronos/
Apache License 2.0
4.39k stars 529 forks source link

How to use the `taskInfoData` job field #880

Closed edi33416 closed 6 years ago

edi33416 commented 6 years ago

I am trying to specify a max run time for a job, and I think this could be done by setting the DurationInfo in TaskInfo

From the Chronos [docs](), it is unclear to me how I can use the taskInfoData field to achieve my goal.

Could someone please provide me with an example?

Thank you, Eduard

edi33416 commented 6 years ago

@gkleiman @brndnmtthws Sorry for the spam guys, but could you please help me?

gkleiman commented 6 years ago

@edi33416 the job's taskInfoData field is used by Chronos to populate ExecutorInfo.data, so it can't be used to change the max run time.

You would have to write a patch to add a new field to Chronos jobs and make Chronos use it to populate TaskInfo.max_completion_time when launching a task.

edi33416 commented 6 years ago

@gkleiman I created the #881 PR for this issue

edi33416 commented 6 years ago

Closing as this has been implemented in #881