Skip to content

Commit c174da5

Browse files
committed
Added functionality for workflow simulator
1 parent 6c7f109 commit c174da5

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

tools/wrench/wrench-daemon/doc/wrench-openapi.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,6 +2449,98 @@
24492449
}
24502450
}
24512451
},
2452+
"/simulation/{simid}/createWorkflowFromJSONString": {
2453+
"post": {
2454+
"tags": [
2455+
"WRENCH"
2456+
],
2457+
"summary": "Simulate workflow from JSON file.",
2458+
"operationId": "createWorkflowFromJSON",
2459+
"parameters": [
2460+
{
2461+
"name": "simid",
2462+
"in": "path",
2463+
"description": "ID of the simulation",
2464+
"required": true,
2465+
"schema": {
2466+
"type": "string"
2467+
}
2468+
}
2469+
],
2470+
"requestBody": {
2471+
"description": "Input to create workflow from JSON.",
2472+
"required": true,
2473+
"content": {
2474+
"application/json": {
2475+
"schema": {
2476+
"properties": {
2477+
"compute_service_name": {
2478+
"type": "string",
2479+
"description": "The cloud service's name"
2480+
},
2481+
"json_string": {
2482+
"type": "string",
2483+
"description": "Workflow file"
2484+
},
2485+
"reference_flop_rate": {
2486+
"type": "str",
2487+
"description": "Reference flop rate"
2488+
},
2489+
"ignore_machine_specs": {
2490+
"type": "bool",
2491+
"description": "Ignore machine specs"
2492+
},
2493+
"redundant, dependencies": {
2494+
"type": "bool",
2495+
"description": "Redundant deendencies"
2496+
},
2497+
"ignore_cycle_creating_dependencies": {
2498+
"type": "bool",
2499+
"description": "Ignore cycle creating dependencies"
2500+
},
2501+
"min_cores_per_task": {
2502+
"type": "float",
2503+
"description": "Min cores per task"
2504+
},
2505+
"max_cores_per_task": {
2506+
"type": "float",
2507+
"description": "Max cores per task"
2508+
},
2509+
"enforce_num_cores": {
2510+
"type": "bool",
2511+
"description": "Enforce num cores"
2512+
},
2513+
"ignore_avg_cpu": {
2514+
"type": "bool",
2515+
"description": "Ignore average cpu"
2516+
},
2517+
"show_warnings": {
2518+
"type": "bool",
2519+
"description": "Show warnings"
2520+
}
2521+
}
2522+
}
2523+
}
2524+
}
2525+
},
2526+
"responses": {
2527+
"200": {
2528+
"description": "OK",
2529+
"content": {
2530+
"application/json": {
2531+
"schema": {
2532+
"$ref": "#/components/schemas/ServiceResponse"
2533+
}
2534+
}
2535+
}
2536+
},
2537+
"405": {
2538+
"description": "Invalid input",
2539+
"content": {}
2540+
}
2541+
}
2542+
}
2543+
},
24522544
"components": {
24532545
"schemas": {
24542546
"SimulationInput": {

0 commit comments

Comments
 (0)