马拉松短暂任务 [英] Ephemeral tasks on Marathon
本文介绍了马拉松短暂任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
您还可以使用 Chronos 运行预计在某个时间完成的任务Now。
马拉松针对长时间运行应始终保持运行的服务。
Before hand let me say that I'm new to Mesosphere stack. I am trying to migrate an existing Rails application deployment to Mesos and I'm successful so far, but currently I'm on the middle of running migrations and seeds (through Rake tasks) and I don't see a pretty way to get it done since those tasks are ephemeral and they don't match quite Marathon's idea. How should I proceed?
解决方案
You could also use Chronos to run a task "Now" that is expected to complete at some point.
Marathon is targeted at long-running services that should always keep running.
这篇关于马拉松短暂任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文