Hello,
I'm getting an AskTimeoutException with the code below:
val pullProc = sys.runtime.exec( path_to_unix_cmd )
try {
// implicit val t:Timeout = 15.minutes // tried this but didn't help
result = Await.result( Future{ pullProc.waitFor }, timeout ) //
timeout set for 15 minutes
} finally {
pullProc.destroy()
}
Nothing special in the application.conf file.
After some time (substantially less than 15 minutes--like maybe 1 minute) I
get this error:
akka.pattern.AskTimeoutException: Ask timed out on
[Actor[akka://BRCluster/user/IO-HTTP#1685585671]]
at
akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333)
at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117)
at
scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:691)
at
scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:688)
at
akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:466)
at
akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:418)
at
akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:422)
at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:374)
at java.lang.Thread.run(Thread.java:695)
I need to set whatever is timing this out.
Even more critically... when this gets thrown it stops the process(!!!).
Can't have that happen. Even if I know how to set
whatever timeout this is, I still need some way to catch/prevent this from
crashing like this....it will be part of a server.
Thanks,
Greg
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.