Skip to content

Commit

Permalink
GCN cronjob docs fix and arg update
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Apr 10, 2024
1 parent 0fb6193 commit 34b8556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Because `cron` runs in a simple environment, the usual details of environment se
```
PYTHONPATH = /Users/username/scope
0 */2 * * * /opt/homebrew/bin/gtimeout 2h ~/miniforge3/envs/scope-env/bin/python scope-gcn-cronjob > ~/scope/log_gcn_cronjob.txt 2>&1
0 */2 * * * /opt/homebrew/bin/gtimeout 2h ~/miniforge3/envs/scope-env/bin/python ~/scope/gcn_cronjob.py > ~/scope/log_gcn_cronjob.txt 2>&1
```
In the first line above, the `PYTHONPATH` environment variable is defined to include the `scope` directory. Without this line, any code that imports from `scope` will throw an error, since the user's usual `PYTHONPATH` variable is not accessed in the `cron` environment.
Expand Down
2 changes: 1 addition & 1 deletion gcn_cronjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def get_parser():
parser.add_argument(
"--username",
type=str,
default='bhealy',
default='dwarshofsky',
help="Username for compute resources (e.g. Expanse)",
)
parser.add_argument(
Expand Down

0 comments on commit 34b8556

Please sign in to comment.