.actor().call()
method to set the correct timeout, show the progress in status message, and stream logs
#632
Labels
t-tooling
Issues with this label are in the ownership of the tooling team.
I was trying out https://apify.com/jakub.kopecky/llmstxt-generator Actor, the experience was not great because of the following:
Timeout
The Actor above was started with a timeout of 18,000 seconds, but the WCC is triggered with a default timeout of 360,000. So, it may happen that the original Actor timeouts, but the WCC will continue running. IMHO, in this case, we should set the timeout for the remaining time for the original Actor.
There might be cases when this is not appropriate, so this behavior could be opt-in or out.
Logs
It's called WCC underneath, which may take a long time to finish in the case of a large website. This means that the Actor seem to get stuck on the following log:
So, I am thinking about improving the
.actor().call()
method in SDK/client the way that it enables developers to optionally stream the log from the Actor called via a.call()
to provide progress/context info.Status message
Finally, it displays a dummy status message that does not communicate progress. The call could automatically update the status message, for example, here, with:
The text was updated successfully, but these errors were encountered: