Skip to content

Commit acaffb3

Browse files
authored
Merge pull request #21 from NREL/perf-improvements
Perf improvements
2 parents 42f2990 + bab2a37 commit acaffb3

37 files changed

+156
-1264
lines changed

api/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,15 @@ paths:
880880
default: false
881881
type: boolean
882882
style: form
883+
- explode: true
884+
in: query
885+
name: include_relationships
886+
required: false
887+
schema:
888+
default: false
889+
type: boolean
890+
style: form
891+
description: Include job relationships (blocked_by_job_ids, input_file_ids, output_file_ids, input_user_data_ids, output_user_data_ids). Default is false for performance.
883892
responses:
884893
"200":
885894
content:

docs/src/explanation/workflow-actions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ Dynamically allocate compute resources from a Slurm scheduler.
238238
- `scheduler_type` (required) - Must be "slurm"
239239
- `num_allocations` (required) - Number of Slurm allocation requests to submit
240240
- `start_one_worker_per_node` (optional) - Start one job runner per node (default: false)
241-
- `start_server_on_head_node` (optional) - Start torc-server on head node (default: false)
242241
- `max_parallel_jobs` (optional) - Maximum concurrent jobs per runner
243242

244243
**Use cases**:

docs/src/how-to/slurm.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
be minimal. However, if you allocate hundreds of nodes with many thousands of
1111
short jobs, the Torc server process may exceed allowed resource limits. Check
1212
with your operations team if you have doubts.
13-
- **Slurm head node**: Create the workflow while running the Torc server on the
14-
login node. Start the workflow with `start_server_on_head_node` set to true.
15-
Shut down the server. Torc will configure the job to start the server upon
16-
being granted the allocation.
13+
1714

1815
## Basic Slurm Configuration
1916

docs/src/how-to/torc-server-args.md

Lines changed: 0 additions & 131 deletions
This file was deleted.

docs/src/tutorials/map_python_function_across_workers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ pip install -e .
2020
Let's suppose that your code is in a module called `simulation.py` and looks something like this:
2121

2222
```python
23-
def run(input_params: dict) -> dict:
23+
def run(job_name: str, input_params: dict) -> dict:
2424
"""Runs one simulation on a set of input parameters.
2525
2626
Returns
2727
-------
28+
job_name: str
29+
Name of the job.
2830
dict
2931
Result of the simulation.
3032
"""
31-
job_name = input_params["job_name"]
3233
return {
3334
"inputs": input_params,
3435
"result": 5,

0 commit comments

Comments
 (0)