Skip to content

Commit

Permalink
ci: set _EWMS_PILOT_DOCKER_SHM_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Oct 2, 2024
1 parent fd43f99 commit 44e393e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/launch_scripts/docker/launch_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ datahub_in_task="/ewms-pilot-data/data-hub"
cp $CI_SKYSCAN_STARTUP_JSON $datahub

# task image, args, env
export EWMS_PILOT_TASK_IMAGE="--shm-size=6gb $DOCKER_IMAGE_TAG" # TODO - remove hacky arg injection
export EWMS_PILOT_TASK_IMAGE="$DOCKER_IMAGE_TAG"
export EWMS_PILOT_TASK_ARGS="python -m skymap_scanner.client.reco_icetray --infile {{INFILE}} --outfile {{OUTFILE}} --client-startup-json $datahub_in_task/startup.json"
json_var=$(env | grep '^SKYSCAN_' | awk -F= '{printf "\"%s\":\"%s\",", $1, $2}' | sed 's/,$//') # must remove last comma
json_var="{$json_var}"
export EWMS_PILOT_TASK_ENV_JSON="$json_var"

export _EWMS_PILOT_DOCKER_SHM_SIZE="6gb" # this only needed in ci--the infra would set this in prod

# file types -- controls intermittent serialization
export EWMS_PILOT_INFILE_EXT="JSON"
export EWMS_PILOT_OUTFILE_EXT="JSON"
Expand Down

0 comments on commit 44e393e

Please sign in to comment.