Skip to content
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

Multithread submission processing #173

Closed
jcadam14 opened this issue Apr 23, 2024 · 0 comments · Fixed by #174
Closed

Multithread submission processing #173

jcadam14 opened this issue Apr 23, 2024 · 0 comments · Fixed by #174
Assignees

Comments

@jcadam14
Copy link
Contributor

Use ProcessPoolExecutor to handle processing of a submission, and a background task to monitor completion of Future. If the task is not completed after a configurable amount of time, set submission to VALIDATION_EXPIRED. Check in submission processing, prior to storing final state of the submission, if the submission has been expired.

@jcadam14 jcadam14 self-assigned this Apr 23, 2024
@jcadam14 jcadam14 linked a pull request Apr 23, 2024 that will close this issue
lchen-2101 added a commit that referenced this issue May 2, 2024
Closes #173 
Closes #181 

- Added the multithread_handler.py to handle creating the event loop,
and monitoring the future from the process executor
- Added the ProcessPoolExecutor stuff to the submission POST. I was not
able to get this working in its own class/function for some reason, I
had to add this stuff for the executor and background task directly to
the endpoint. Otherwise, the execution task never fired.
- Added pytests

---------

Co-authored-by: lchen-2101 <73617864+lchen-2101@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant