Skip to content

Commit

Permalink
fixed s3 path reference for pulls submissions
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <[email protected]>
  • Loading branch information
Thistleman committed Nov 30, 2023
1 parent 2ea961f commit ca2d7d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workers/submission_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,11 @@ def process_submission_message(message):

# execute the runner script
# assume ret indicates the directory of result of the runner script
argument = f'pv-validation-hub-bucket/submission_files/submission_user_{user_id}/submission_{submission_id}/{submission_filename}'
argument = f'submission_files/submission_user_{user_id}/submission_{submission_id}/{submission_filename}'
logger.info(f'execute runner module function with argument {argument}')

# argument is the s3 file path. All pull from s3 calls CANNOT use the bucket name in the path.
# bucket name must be passed seperately to boto3 calls.
ret = analysis_function(argument, current_evaluation_dir)
logger.info(f'runner module function returns {ret}')

Expand Down

0 comments on commit ca2d7d2

Please sign in to comment.