-
Notifications
You must be signed in to change notification settings - Fork 0
add simplefold job type #101
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
base: main
Are you sure you want to change the base?
Changes from all commits
6903e4a
06de4e4
c86a32e
f6954f6
bcbbb68
ca3e1fe
2a31563
b449cc7
177dc73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,3 +166,5 @@ chart/charts/ | |
|
|
||
| */sql_app.db | ||
| .idea/ | ||
|
|
||
| drafts/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| from fastapi import HTTPException | ||
| from starlette.responses import PlainTextResponse | ||
|
|
||
| from config import get_logger | ||
| from services.minio_service import MinIOService | ||
| from sqlmodel.ext.asyncio.session import AsyncSession | ||
|
|
||
| log = get_logger(__name__) | ||
|
|
||
|
|
||
| class SimpleFoldService: | ||
|
|
||
| @staticmethod | ||
| async def resultPostProcess(bucket_name: str, job_id: str, service: MinIOService, db: AsyncSession): | ||
| """ | ||
| Inputs stored in Minio: /{job_id}/in/<fasta_file> Bucket name: ml-simplefold | ||
| Outputs stored in Minio: /{job_id}/out/ Bucket name: ml-simplefold | ||
| """ | ||
| cif_path = f"{job_id}/out/predictions_simplefold_100M/input_sampled_0.cif" | ||
| content = service.get_file(bucket_name, cif_path) | ||
| if content is None: | ||
| raise HTTPException(status_code=404, detail=f"Output CIF file not found for job {job_id}") | ||
| return PlainTextResponse(content.decode('utf-8')) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ spec: | |
| {%- endfor %} | ||
| initContainers: | ||
| - name: init | ||
| image: moleculemaker/mmli-backend:kubejob | ||
| image: moleculemaker/mmli-backend:pr-101 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good eye on this! Sorry, I forgot that I had hardcoded these image tags 🙏 We may need to remember to circle back and update these after merging the PR |
||
| imagePullPolicy: Always | ||
| # securityContext: | ||
| # runAsUser: 0 | ||
|
|
@@ -120,9 +120,15 @@ spec: | |
| limits: | ||
| cpu: "{{ resources.limits.cpu }}" | ||
| memory: "{{ resources.limits.memory }}" | ||
| {%- if resources.limits['nvidia.com/gpu'] is defined %} | ||
| nvidia.com/gpu: "{{ resources.limits['nvidia.com/gpu'] }}" | ||
| {%- endif %} | ||
| requests: | ||
| cpu: "{{ resources.requests.cpu }}" | ||
| memory: "{{ resources.requests.memory }}" | ||
| {%- if resources.requests['nvidia.com/gpu'] is defined %} | ||
| nvidia.com/gpu: "{{ resources.requests['nvidia.com/gpu'] }}" | ||
| {%- endif %} | ||
| {%- if command %} | ||
| command: | ||
| - 'bash' | ||
|
|
@@ -181,7 +187,7 @@ spec: | |
| {%- endfor %} | ||
| containers: | ||
| - name: post-job | ||
| image: "moleculemaker/mmli-backend:kubejob" | ||
| image: "moleculemaker/mmli-backend:pr-101" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good eye on this! Sorry, I forgot that I had hardcoded these image tags 🙏 We may need to remember to circle back and update these after merging the PR |
||
| imagePullPolicy: Always | ||
| command: | ||
| - 'bash' | ||
|
|
||
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.
May need to circle back to fill out the email on success/failure eventually
But this is kind of an internal job, so maybe we don't need to notify at all on this one?