Skip to content

Instantly share code, notes, and snippets.

View harleyholt's full-sized avatar

Harley Holt harleyholt

  • Seattle
  • 11:07 (UTC -07:00)
View GitHub Profile
@harleyholt
harleyholt / bulk-task-graph.py
Created September 19, 2014 22:25
bulk-task-graph.py
import json
from bigdoor.task.worker.bulk import add_resource_identifier, get_tasks, order_tasks
import networkx as nx
colors = ['red', 'blue', 'green', 'yellow', 'violet']
task_type_colors = {}
def run():
data = json.loads(open('reward.json').read())
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"externalId": {
"description": "The externalId passed to the service by the caller, if one was provided.",
"type": "string"
},
"id": {
"description": "A unique Id generated by C-SATS.",