Skip to content

Instantly share code, notes, and snippets.

@ConnorRigby
Created January 25, 2017 18:44
Show Gist options
  • Save ConnorRigby/977c058bedead647998b08109cacf2ec to your computer and use it in GitHub Desktop.
Save ConnorRigby/977c058bedead647998b08109cacf2ec to your computer and use it in GitHub Desktop.
{
// these are the "user accessable" processes. things can only be started if they
// are indexed in here.
process_info: {
events: [
{name: "user friendly tag?", uuid: "1234-asdf-1111", status: "running"},
{name: ":+1:", uuid: "6767-1234-asdf", status: "fuuuuu"}
],
regimens: [
{name: "water plants @ 4:00 pm", uuid: "1111-aaaa-1234", status: "failed"}
],
farmwares: [
{name: "herp derp", uuid: "1234-abcd-6789", status: "nothing to see here"}
]
}
}
// celery script nodes would be
{
kind: "start_process", args: {uuid: "1234-abcd-6789"}
}
{
kind: "stop_process", args: {uuiid: "1234-asdf-1111"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment