Skip to content

Commit

Permalink
fix: change OpenJD's session root directory to /sessions (#222)
Browse files Browse the repository at this point in the history
Signed-off-by: Gahyun Suh <132245153+gahyusuh@users.noreply.github.com>
  • Loading branch information
gahyusuh committed Mar 19, 2024
1 parent 1e82d02 commit 3b68342
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/deadline_worker_agent/installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ if [ -f /var/lib/deadline/worker.json ]; then
fi
echo "Done provisioning persistence directory (/var/lib/deadline)"

echo "Provisioning root directory for OpenJD Sessions (/var/tmp/openjd)"
mkdir -p /var/tmp/openjd
chown "${wa_user}:${job_group}" /var/tmp/openjd
chmod 755 /var/tmp/openjd
echo "Provisioning root directory for OpenJD Sessions (/sessions)"
mkdir -p /sessions
chown "${wa_user}:${job_group}" /sessions
chmod 755 /sessions

echo "Provisioning configuration directory (/etc/amazon/deadline)"
mkdir -p /etc/amazon/deadline
Expand Down
2 changes: 1 addition & 1 deletion src/deadline_worker_agent/sessions/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
ActionState.SUCCESS: "SUCCEEDED",
ActionState.TIMEOUT: "FAILED",
}
DEFAULT_POSIX_OPENJD_SESSION_DIR = Path("/var/tmp/openjd")
DEFAULT_POSIX_OPENJD_SESSION_DIR = Path("/sessions")
TIME_DELTA_ZERO = timedelta()

# During a SYNC_INPUT_JOB_ATTACHMENTS session action, the transfer rate is periodically reported through
Expand Down

0 comments on commit 3b68342

Please sign in to comment.