Open
Description
Hi Arian :)
Is your feature request related to a problem? Please describe.
Currently, we just wait until the object is created. At times these objects can take more than 5-10 minutes (!).
Describe the solution you'd like
A break clause that raises a TimeoutError if it has been longer than X amount of time.
Additional context
Something like this for example could work in meshes.py
max_wait_seconds = 10
start_time = time.time()
while not os.path.isfile(obj_file):
if time.time() - start_time > max_wait_seconds:
raise TimeoutError(f"{obj_file} not found after {max_wait_seconds} seconds")
time.sleep(0.1)
The max_wait_seconds could be a parameter passed to create_mesh or to config.
Let me know what you think :)
Metadata
Metadata
Assignees
Labels
No labels