You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to perform a compute flow with nautilus. When calling the getComputeResult in my function, it doesn't finish the job and return. I implemented a polling system which works fine, but is not nice to have. I hard coded the status 70 which refers to a finished job.
Current Behavior
Before implementing the polling system I tried to update the examples provided here to fit to my application.
When not using the Polling system, the application will send me back:
[compute] Retrieve results: job does not exist or is not yet finished.
Summary
I tried to perform a compute flow with nautilus. When calling the getComputeResult in my function, it doesn't finish the job and return. I implemented a polling system which works fine, but is not nice to have. I hard coded the status 70 which refers to a finished job.
Current Behavior
Before implementing the polling system I tried to update the examples provided here to fit to my application.
When not using the Polling system, the application will send me back:
Here the code:
Here my code with the polling system:
Is there a better solution to handle the Promises instead of doing the polling system ?
I call these functions in another function which I then exposed to the routes of my API.
Expected Behavior
I think it should work fine as in the example provided here . The compute job should completed before the results are sent back.
Steps to Reproduce
I am using Express to expose an API.
I stored my network configuration in a variable but you can call it directly.
Environment
Anything else
The text was updated successfully, but these errors were encountered: