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?
Asked
Active
Viewed 760 times
2

Ross Allen
- 43,772
- 14
- 97
- 95

Carlos Castellanos
- 2,358
- 4
- 25
- 43
-
One-off tasks are currently a feature request in Marathon. You could mention your use case in the GitHub Issue to put in your vote: https://github.com/mesosphere/marathon/issues/344 – Ross Allen Oct 10 '14 at 01:24
2 Answers
2
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.

Adam
- 4,322
- 1
- 16
- 22
-
Thanks @Adam, Chronos seems to be a good choice, FYI Marathon is working on adding this feature too. – Carlos Castellanos Oct 30 '14 at 14:32
0
Recent development has included the "Job" capability via Metronome (Chronos replacement) or you can also use Eremetic framework for one-off tasks.

Subodh Pachghare
- 154
- 1
- 8