-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add batch_job_id
to result metadata
#295
Conversation
@@ -1398,23 +1398,35 @@ def raycast_test(self, obj, start, end, length, **kw): | |||
def post_and_open_file(self, file_name, open_results_in_browser=True): | |||
simularium_file = Path(f"{file_name}.simularium") | |||
url = None | |||
job_id = os.environ.get("AWS_BATCH_JOB_ID", None) | |||
if job_id: | |||
print(f"Batch Job ID: {job_id}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we can probably remove lines 1402 and 1403, this was just for debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* draft aws cli inside of docker container * access aws s3 with saved cred * update readme * update docker commands * update readme * update readme * add parameter for when we're using docker to default to using the staging firebase db * read recipe and config in from docker run params * use dockerignore file to prevent bloat in docker image * add `batch_job_id` to result metadata (#295) * retrieve job id * formatting * add a bucket for batch jobs * formatting * remove print statement and add comments --------- Co-authored-by: Ruge Li <[email protected]> Co-authored-by: Ruge Li <[email protected]>
Problem
What is the problem this work solves, including
closes #296
Solution
What I/we did to solve this problem
os
batch_job_id
field to result metadata, which will be uploaded to firebase upon successful packing. If the packing is local, the value will benull
with @ascibisz
Type of change
Please delete options that are not relevant.
Steps to Verify:
results
collection in staging firebase database - recipe metadata should display the correct batch job idbatch_job_id
field should also be present but with anull
valueScreenshots (optional):
Show-n-tell images/animations here
Step 1 (API Gateway): use API gateway to trigger a packing batch job
Step 2 (AWS Batch): wait for the batch job to run
Step 3 (Firebase): batch job id will be added to the metadata and uploaded to firebase