Skip to content

Commit

Permalink
Do a login instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyisi committed Dec 4, 2024
1 parent 3a4e842 commit f6b35a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions servicex_app/servicex_app/transformer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def create_job_object(request_id, image, rabbitmq_uri, workers,
if result_destination == 'volume':
TransformerManager.create_posix_volume(volumes, volume_mounts)

science_command = '"'
science_command = " "
if x509_secret:
science_command += "until [ -f /servicex/output/scripts/proxy-exporter.sh ];" \
"do sleep 5;done &&" \
Expand All @@ -211,8 +211,6 @@ def create_job_object(request_id, image, rabbitmq_uri, workers,
"{TC} ".format(TC=transformer_command) + \
watch_path

science_command += '"'

if result_destination == 'volume':
sidecar_command += " --output-dir " + os.path.join(
TransformerManager.POSIX_VOLUME_MOUNT,
Expand All @@ -228,7 +226,7 @@ def create_job_object(request_id, image, rabbitmq_uri, workers,
image=image,
image_pull_policy=current_app.config['TRANSFORMER_SCIENCE_IMAGE_PULL_POLICY'],
volume_mounts=volume_mounts,
command=["bash", "-c"],
command=["bash", "--login", "-c"],
env=env,
args=[science_command],
resources=resources
Expand Down

0 comments on commit f6b35a4

Please sign in to comment.