Open MariusWirtz opened 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: @.***>
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
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