cubewise-code / tm1py

TM1py is a Python package that wraps the TM1 REST API in a simple to use library.
http://tm1py.readthedocs.io/en/latest/
MIT License
187 stars 107 forks source link

Rollout `return_async_id` to more functions #1132

Open MariusWirtz opened 2 months ago

MariusWirtz commented 2 months ago

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:

rclapp commented 2 months ago

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:

— 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: @.***>

MariusWirtz commented 1 month ago

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