bull-stepfunction
Version:
run bullQ job like AWS stepfunction
33 lines (32 loc) • 879 B
JSON
{
"StartAt": "Para",
"States": {
"Para":{
"Type": "Parallel",
"End": true,
"Branches": [
{
"StartAt": "Fetch",
"States": {
"Fetch": {
"Type": "Task",
"Resource":
"GetValue",
"End": true
}
}
},
{
"StartAt": "Sleep",
"States": {
"Sleep": {
"Type": "Wait",
"Seconds": 10,
"End": true
}
}
}
]
}
}
}