8000 🚀 Enhancement: Expose execution ID in function execution · Issue #9316 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
🚀 Enhancement: Expose execution ID in function execution #9316
Open
@stnguyen90

Description

@stnguyen90

🔖 Enhancement description

Appwrite passes the function and deployment IDs into executions, but not the execution ID.

It would be helpful if the execution ID was also passed into the execution as a header

🎤 Pitch

Having the execution ID can allow for better tracking in case I'm using Sentry and I want to correlate an error in Sentry with the execution in Appwrite.

In addition, the ID can be used for cases where something is done asynchronously, but needs to be retrieved later. Suppose I want to pass data to ChatGPT but I don't want to wait for the response synchronously. I can call functions.createExecution("prompt", true) and get back the execution ID. The function can, then, make the API call to ChatGPT and then create a document with the ID of the function. My client app can, then, fetch that document using the execution ID to get the response.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0