Feature Request: HTTP API for managing task hubs #2164
Replies: 2 comments 1 reply
-
@sebastianburckhardt: Just triple checking if you're aware of the
func-cli aside, what behaviors are we interested in supporting here. Is it just taskhub deletion and creation or is there anything else that could be useful? |
Beta Was this translation helpful? Give feedback.
-
This is an issue we discovered while developing tests for the Java SDK and work was done to support it. Here are the client APIs in the Java SDK that can be used to create and delete task hubs: https://github.com/microsoft/durabletask-java/blob/ae18755be8c4d028074773606f0ffa9ab01715ad/sdk/src/main/java/com/microsoft/durabletask/DurableTaskClient.java#L74-L76. Here is the implementation of these APIs in the Durable Task extension: I agree it would be useful to expose these over HTTP as well. I do wonder if we need to consider some kind of authorization policy for these, though, since delete in particular is very destructive. |
Beta Was this translation helpful? Give feedback.
-
Currently, task hubs are automatically created when they are used the first time, and the only way to delete them is to delete the containing storage or to manually delete certain objects in storage. This is very brittle, backend-dependent and difficult to discover.
Perhaps it would make sense to offer backend-independent HTTP APIs to create or delete task hubs.
Beta Was this translation helpful? Give feedback.
All reactions