forked from meltwater/secretary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Metronome uses marathon under the hood cf. https://github.com/dcos/metronome/blob/8c3940fa180ebce87744a32ae354ef126245067f/jobs/src/main/scala/dcos/metronome/utils/glue/MarathonImplicits.scala#L107 and https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/marathon/state/VersionInfo.scala and so injects MARATHON_APP_ID and MARATHON_APP_VERSION into the env Hence, the previous way to determine the distinction was not working for jobs - The fix checks for the appVersion and if set, if a time str in RFC 3339, and not equal unixtime 0, it assumes it is a task, else we assume it is a mesos task cf. https://github.com/dcos/metronome/blob/8c3940fa180ebce87744a32ae354ef126245067f/jobs/src/main/scala/dcos/metronome/utils/glue/MarathonImplicits.scala#L107 and https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/marathon/state/VersionInfo.scala for why that works (should work tm) - Added same test cases for the change
- Loading branch information
1 parent
05e1b18
commit ad95aed
Showing
2 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters