Skip to content

Commit

Permalink
Add RCP run status, add execute job function
Browse files Browse the repository at this point in the history
  • Loading branch information
evanjt committed Mar 28, 2024
1 parent c91edd9 commit 96fb865
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ async def get_submission(
return res.json()


@router.post("/{submission_id}/execute", response_model=Any)
async def execute_submission(
submission_id: UUID,
client: httpx.AsyncClient = Depends(get_async_client),
admin_user: User = Depends(require_admin),
) -> Any:
"""Execute a submission by id"""

res = await client.post(
f"{config.DEEPREEFMAP_API_URL}/v1/submissions/{submission_id}/execute",
)

return res.json()


@router.get("")
async def get_submissions(
response: Response,
Expand Down

0 comments on commit 96fb865

Please sign in to comment.