tm1py icon indicating copy to clipboard operation
tm1py copied to clipboard

Rollout `return_async_id` to more functions

Open MariusWirtz opened this issue 1 year ago • 2 comments

I propose we roll out the return_async_id argument to more functions.

It would be helpful to have it on tasks that are "single request based" but yet can long to complete, such as:

  • add_elements
  • add_edges

MariusWirtz avatar Jul 03 '24 19:07 MariusWirtz

Can we add it as a decorator? Also what about queries?

On Jul 3, 2024 3:52 PM, Marius Wirtz @.***> wrote:

I propose we roll out the return_async_id argument to more functions.

It would be helpful to have it on tasks that are "single request based" but yet can long to complete, such as:

  • add_elements
  • add_edges

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZQ6SS5O4RPHNGK6YXLZKRI55AVCNFSM6AAAAABKKG76T2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DSMZUGQZTSMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rclapp avatar Jul 04 '24 18:07 rclapp

Yes. The preferred solution would be to solve it with a generic decorator that we could use on all functions.

To limit the complexity of that decorator, we could, in a first version, limit it to functions that are single request-based

MariusWirtz avatar Jul 18 '24 08:07 MariusWirtz