Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait_for_task method should only wait for 60 seconds if the last query was at least 60 seconds. #24

Open
golharam opened this issue Sep 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@golharam
Copy link

golharam commented Sep 24, 2024

This method should block until a task/workflow is in a Complete, Cancelled or Failed state. This method should then return an updated task object.

As part of the wait cycle, if the task has not been queried for an updated state in more than XXX seconds, the task state should be queried immediately, else the method should wait on querying until XXX seconds has passed since it was last queried.

Alternatively, if the underlying platform supports notification (ie callback), this method should wait until callback is made.

A timeout period should also be added such that if a task state cannot be determined after an extended period of time, this method should timeout and return or throw an exception.

If the underlying platform supports any of this, that functionality should be used and wrapped.

@golharam golharam added the enhancement New feature or request label Sep 24, 2024
@golharam golharam changed the title wait_for_task method is needed wait_for_task method should only wait for 60 seconds if the last query was at least 60 seconds. Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant