Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

mesosphere - Mesos/Chronos How are the tasks getting updated to FINISHED task status?

I am new to Mesos and trying to understand the flow when the task is successfully finished and how it is updated to Mesos with Chronos.

(in version 2.4.0) When I have a job where the task finished running asynchronously and finished successfully, then my application that will send the outcome to "/scheduler/task/{id}" (in Chronos TaskManagementResource.scala), then it increments the job success counter, and update last successful run time for the job. Then it calls jobsObserver.apply(JobFinished(job, taskStatus, attempt)) which I am bit confused. What does jobsObserver do?

https://github.com/mesos/chronos/blob/c1348ddfd80eb8f888418805005066c230fc6ad2/src/main/scala/org/apache/mesos/chronos/scheduler/jobs/JobScheduler.scala#L216

https://github.com/apache/mesos/blob/c28fd3a93e0d9d9a868aec2380abd1dd338304ef/src/java/src/org/apache/mesos/Scheduler.java#L131

question from:https://stackoverflow.com/questions/65933983/mesos-chronos-how-are-the-tasks-getting-updated-to-finished-task-status

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...