Skip to content

Instantly share code, notes, and snippets.

@davidzchen
Created June 22, 2014 05:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidzchen/7a22734e70fbc97552cc to your computer and use it in GitHub Desktop.
Save davidzchen/7a22734e70fbc97552cc to your computer and use it in GitHub Desktop.
Azkaban JSON-based DSL Syntax
{
"innerJobA": {
"type": "javaprocess",
"props": {
"job.class": "azkaban.executor.SleepJavaJob",
"seconds": 1,
"fail": "false"
}
},
"innerJobB": {
"type": "javaprocess",
"deps": "innerJobA",
"props": {
"job.class": "azkaban.executor.SleepJavaJob",
"seconds": 1,
"fail": "false"
}
},
"innerJobC": {
"type": "javaprocess",
"deps": "innerJobA",
"props": {
"job.class": "azkaban.executor.SleepJavaJob",
"seconds": 1,
"fail": "false"
}
},
"jobA": {
"type": "javaprocess",
"props": {
"job.class": "azkaban.executor.SleepJavaJob",
"seconds": 1,
"fail": "false"
}
},
"innerFlow": {
"deps": "jobA",
"runs": ["innerJobB", "innerJobC"]
},
"flowB": {
"embeds": "innerFlow",
"deps": "jobA"
},
"flowC": {
"embeds": "innerFlow",
"deps": "jobA"
},
"flowD": {
"embeds": "innerFlow",
"deps": "jobA"
},
"embedded": {
"runs": ["jobB", "jobC", "jobD"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment