-
Notifications
You must be signed in to change notification settings - Fork 31
⚠️🎨✨ Execute the api-server's run
and map
function api endpoints in celery worker
#8233
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
⚠️🎨✨ Execute the api-server's run
and map
function api endpoints in celery worker
#8233
Conversation
🧪 CI InsightsHere's what we observed from your CI run for 9172a39. ✅ Passed Jobs With Interesting Signals
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8233 +/- ##
==========================================
- Coverage 87.89% 87.86% -0.03%
==========================================
Files 1933 1939 +6
Lines 74941 75186 +245
Branches 1309 1309
==========================================
+ Hits 65867 66062 +195
- Misses 8681 8731 +50
Partials 393 393
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
run
and map
function api endpoints in celery workerrun
and map
function api endpoints in celery worker
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.
Do not forget to create the MRs for OPS (also for the ENVs) and please check my last comments.
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.
thx
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.
Thanks, OK with me
This reverts commit 312e853.
|
@Mergifyio queue |
🟠 Waiting for conditions to match
|
Related issue/s * closes ITISFoundation#1192 Related PR/s * ITISFoundation/osparc-simcore#8233
* Add api-worker simcore service Related issue/s * closes #1192 Related PR/s * ITISFoundation/osparc-simcore#8233 * raise cpu limit
This is a mega PR which introduces a celery worker into the api-server based on our wonderful
celery_library
.What do these changes do?
tasks
section of the api-server to use the celery task_manager directly.As discussed with @wvangeit the implemention "hides" the celery_worker from the user in the sense that the user gets a function_job/function_collection back immediately when running the run/map endpoints respectively, and when the user requests the status of the job, the api-server keeps track of whether or not celery task is still running or the backend project has already been created.
@wvangeit note the following points:
job_id
s of thejob_collection
which is returned by the map endpoint don't have the same ordering as thejob_input
s (because of the way the caching is done. Since the job_inputs are stored with the job itself I figured that is not really required, but please let me know if that conclusion is wrong.Related issue/s
How to test
From inside
/services/api-server
runDev-ops
api-worker
service on the ops-side before deploying this, see Setupapi-worker
service on deployments osparc-ops-environments#1192