Skip to content

Commit

Permalink
fix simularium in gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Aug 16, 2024
1 parent edaeeb3 commit 614bc16
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compose_api/.CONTAINER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1
1 change: 1 addition & 0 deletions compose_api/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class PendingUtcJob(Job):
# -- files --

class PendingSimulariumJob(Job):
"""jobid timestamp path filename box_size status"""
job_id: str
timestamp: str
path: str
Expand Down
11 changes: 8 additions & 3 deletions compose_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,20 @@ async def generate_simularium_file(
if filename is None:
filename = 'simulation'

new_job_submission = await db_connector.write(
collection_name=DatabaseCollections.PENDING_JOBS,
status=JobStatus.PENDING,
new_job_submission = await db_connector.insert_job_async(
collection_name=DatabaseCollections.PENDING_JOBS.value,
status=JobStatus.PENDING.value,
job_id=job_id,
timestamp=_time,
path=uploaded_file_location,
filename=filename,
box_size=box_size,
)

gen_id = new_job_submission.get('_id')
if gen_id is not None:
new_job_submission.pop('_id')

return PendingSimulariumJob(**new_job_submission)
except Exception as e:
raise HTTPException(status_code=404, detail=f"A simularium file cannot be parsed from your input. Please check your input file and refer to the simulariumio documentation for more details.")
Expand Down
2 changes: 1 addition & 1 deletion kustomize/overlays/biochecknet/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ images:
# - name: ghcr.io/biosimulators/bio-check-worker
# newTag: 1.1.5
- name: ghcr.io/biosimulators/bio-check-compose_api
newTag: 1.2.0
newTag: 1.2.1
- name: ghcr.io/biosimulators/bio-check-compose_worker
newTag: 1.2.0
- name: mongo
Expand Down

0 comments on commit 614bc16

Please sign in to comment.