-
Notifications
You must be signed in to change notification settings - Fork 30
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
Separate function logs from the other logs #1400
Comments
Here is an idea to implement this. The log entry from the function must be tagged (marked) like Then The scheduler filters the log entries and put into the new OR The gateway filters the log and provide APIs that return the function log or the other part of log WDYT @Tansito @psschwei @IceKhan13 |
Do we need to emit the function log to somewhere? |
One could make the argument that end users just need the function output/result and logs should only be available to the provider. That would probably require providers to generate something to return when jobs fail (so would shift some ownership to them), but it would also remove the need for us to filter logs (reducing our responsibility a bit, which I also like). |
Yeah, we were commenting good approximations to this and due to the deadlines that we have our proposal would be:
So for this, the proposal in what I was thinking it's something similar to what Paul is saying:
WDYT? |
Our log is a string returned by ray.job_submission.JobSubmissionClient.get_job_logs. It is saved into
Here is the relationship among jobs and function.
The result is the return value from the
We can pre-configure logger to output to a local file in |
Just to clarify this point, Aki. We are going to continue supporting the current logic. For qiskit functions created by users the user will continue having access to its logs. The difference is that now, we are going to check if the job comes from a qiskit function shared by a provider and in that case only the provider will be able to read those logs.
Exactly. What we are trying with this is to offer a way to be able to analyze some executions. And maybe add some filters in the end-point like the
Start with a recommendation could work, yep.
I would like to start first with something simple. Just changing our current |
OK. The required changes right now are:
|
Yep, basically that! |
For this, a new api Where is this api called from the client?
any opinion? @psschwei @Tansito @IceKhan13 |
I was thinking in a workflow like: function = serverless.get("my-first-pattern")
function.get_jobs() |
OK. It seems good. Thanks! |
What is the expected enhancement?
Functions may be provided by different parties from the party who executes the function. The log from the function may be better to be separated from the part of log.
The text was updated successfully, but these errors were encountered: