Skip to content

Commit

Permalink
Fix spots where we still want code block tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhlin committed Dec 18, 2024
1 parent 6b48c60 commit 927a47b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions docs/v24/configuration/writing-job-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,34 +309,34 @@ For example, the following HTCondor-CE configuration would result in the followi

=== "HTCondor-CE Configuration"

```
CONDORCE_PILOT_JOB_ENV = "WN_SCRATCH_DIR=/nobackup/ http_proxy=proxy.wisc.edu"
```
```
CONDORCE_PILOT_JOB_ENV = "WN_SCRATCH_DIR=/nobackup/ http_proxy=proxy.wisc.edu"
```

=== "Resulting Environment"

```bash
WN_SCRATCH_DIR=/nobackup/
http_proxy=proxy.wisc.edu
```
```bash
WN_SCRATCH_DIR=/nobackup/
http_proxy=proxy.wisc.edu
```

Contents of `CONDORCE_PILOT_JOB_ENV` can reference other HTCondor-CE configuration using HTCondor's configuration
[$() macro expansion](https://htcondor.readthedocs.io/en/lts/admin-manual/introduction-to-configuration.html#configuration-file-macros).
For example, the following HTCondor-CE configuration would result in the following environment for all routed jobs:

=== "HTCondor-CE Configuration"

```
LOCAL_PROXY = proxy.wisc.edu
CONDORCE_PILOT_JOB_ENV = "WN_SCRATCH_DIR=/nobackup/ http_proxy=$(LOCAL_PROXY)"
```
```
LOCAL_PROXY = proxy.wisc.edu
CONDORCE_PILOT_JOB_ENV = "WN_SCRATCH_DIR=/nobackup/ http_proxy=$(LOCAL_PROXY)"
```

=== "Resulting Environment"

```bash
WN_SCRATCH_DIR=/nobackup/
http_proxy=proxy.wisc.edu
```
```bash
WN_SCRATCH_DIR=/nobackup/
http_proxy=proxy.wisc.edu
```

To set environment variables per job route, based on incoming job attributes, or using ClassAd functions, add
`default_pilot_job_env` to your job route configuration:
Expand All @@ -355,18 +355,18 @@ JOB_ROUTER_ROUTE_NAMES = Condor_Pool

=== "Incoming Job Attributes"

```
JOB_COLLECTOR = "collector.wisc.edu"
JOB_VO = "GLOW"
```
```
JOB_COLLECTOR = "collector.wisc.edu"
JOB_VO = "GLOW"
```

=== "Resulting Environment"

```bash
WN_SCRATCH_DIR=/nobackup/
PILOT_COLLECTOR=collector.wisc.edu
ACCOUNTING_GROUP=glow
```
```bash
WN_SCRATCH_DIR=/nobackup/
PILOT_COLLECTOR=collector.wisc.edu
ACCOUNTING_GROUP=glow
```

!!!tip "Debugging job route environment expressions"
While constructing `default_pilot_job_env` or `set_default_pilot_job_env` expressions, try wrapping your expression
Expand Down

0 comments on commit 927a47b

Please sign in to comment.