From 34b85560b4c14718f71ed46390362e8eaf08704a Mon Sep 17 00:00:00 2001 From: Brian Healy Date: Wed, 10 Apr 2024 14:12:15 -0500 Subject: [PATCH] GCN cronjob docs fix and arg update --- doc/usage.md | 2 +- gcn_cronjob.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage.md b/doc/usage.md index d9bc428..34096fc 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -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. diff --git a/gcn_cronjob.py b/gcn_cronjob.py index 059ff31..d6cf6db 100755 --- a/gcn_cronjob.py +++ b/gcn_cronjob.py @@ -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(