You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible to state in our docs when the job_id is assigned in the process? - or will that be changing too? @ElePT
With Functions, we have a "serverless job_id" and a "runtime job_id". I assume that you are referring to the runtime one. I think that the platform changes will make things clearer but in the meantime, it won't hurt to add a bit more detail as to when the runtime job is expected to start. This behavior won't change this year.
Here's the gist: when a user calls function.run a serverless job is submitted. At the moment, this serverless job id doesn't show up in the workloads page. The serverless job will go through a series of statuses:
1.QUEUED
2.INITIALIZING
3.RUNNING
4.SUCCESS (error, stopped, etc are also possible)
If the function providers supports it, the RUNNING status will be split up into "sub-statuses":
RUNNING: MAPPING
RUNNING: OPTIMIZING FOR HARDWARE
RUNNING: WAITING FOR HARDWARE
RUNNING: EXECUTING ON HARDWARE
RUNNING: POST_PROCESSING
When the sub-status says RUNNING: WAITING FOR HARDWARE, we know that a runtime job has been submitted, and the corresponding entry is expected to appear in the workloads table. If the function doesn't implement sub-statuses, we expect the runtime job to appear at some point in the RUNNING status of the serverless job, but we won't be able to accurately know when. In any case, that point will hardly ever be the beginning of RUNNING, which is what many users expect and get confused by.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4144. cc: @pandasa123 @acastellane @ElePT