RunClient.resurrect() works first time, but not second time

I have written a Python client that iterates through a batch of input files and calls an actor to process each file. This it accomplishes using the ActorClient.call() method. If one of the files fails, I get the RunClient object from the ActorClient object and call resurrect(). I would like to resurrect twice before throwing an exception. I can get the job to resurrect the first time (because its status is FAILED), but if I try again, I get this error message:
Cannot resurrect an Actor run with the READY status
. Is there a way to wait until the job has returned to a status of FAILED the second time? Please let me know if I can provide any additional information, and thanks in advance!
Was this page helpful?