Skip to content

Commit

Permalink
Add configurable directory for oarexec_job_data
Browse files Browse the repository at this point in the history
  • Loading branch information
augu5te committed Oct 21, 2024
1 parent 46ce6b2 commit bca925b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion oar/modules/bipbip.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,9 @@ def data_to_oar_env(data: dict[str, any]) -> dict[str, str]:
##########################################################################
self.logger.debug(f"Run OAREXEC_USERMODE {job_id}")

filename_oarexec_job_data_filename = f"oarexec_job_data_{job_id}.pkl"
filename_oarexec_job_data_filename = (
f"{config['OAREXEC_JOB_DATA_DIRECTORY']}/exec_job_data_{job_id}.pkl"
)

with open(filename_oarexec_job_data_filename, "wb") as f:
pickle.dump(data_to_transfer, f)
Expand Down
2 changes: 1 addition & 1 deletion oar/tools/oar_usermode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ OAREXEC_DEBUG_MODE="0"
OAR_RUNTIME_DIRECTORY="/tmp/"

# OAR log file
LOG_FILE="/tmp//oar.log"
LOG_FILE="/tmp/oar.log"

# Specify where we are connected with a job of the deploy type
DEPLOY_HOSTNAME="127.0.0.1"
Expand Down

0 comments on commit bca925b

Please sign in to comment.