sdk-core icon indicating copy to clipboard operation
sdk-core copied to clipboard

[Feature Request] Add the ability to manipulate the schedule from the Rust SDK

Open bdbelevate opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

It is not possible to change or initiate a schedule from the Rust SDK directly.

Describe the solution you'd like

See attached PR. Open to suggestions though on how to improve. I didn't know if creating direct structs vs using the proto messages was preferred but happy to change.

Additional context

While I tried to follow some of the Go examples, it looks like the Rust SDK is a bit different in terms of the logic.

bdbelevate avatar May 18 '23 19:05 bdbelevate

So this is currently possible, just not with a higher-level API. You can either use the client from the protos crate directly, or you can call https://github.com/temporalio/sdk-core/blob/3d5342c37d6073aad9640942ebf6769411e2e028/client/src/raw.rs#L34 to obtain it from an existing client.

Then you can use the raw gRPC calls to get this done.

That said, it'd be good to have the higher-level interface as well.

Sushisource avatar May 18 '23 21:05 Sushisource