Commit 424ce663 authored by Romain Reuillon's avatar Romain Reuillon
Browse files

Merge branch 'retrydelay' into 'master'

[Plugin] fix: add submit retry delay

See merge request openmole/openmole!15
parents 0d0809f7 bbdf3607
......@@ -98,8 +98,9 @@ object BatchEnvironment {
}
val MemorySizeForRuntime = ConfigurationLocation("BatchEnvironment", "MemorySizeForRuntime", Some(1024 megabytes))
val CheckInterval = ConfigurationLocation("BatchEnvironment", "CheckInterval", Some(1 minutes))
val SubmitRetryInterval = ConfigurationLocation("BatchEnvironment", "SubmitRetryInterval", Some(30 seconds))
val GetTokenInterval = ConfigurationLocation("BatchEnvironment", "GetTokenInterval", Some(1 minutes))
......
......@@ -36,7 +36,7 @@ object SubmitActor {
catch {
case e: Throwable
JobManager ! Error(job, e, None)
JobManager ! Submit(job)
JobManager ! Delay(Submit(job), preference(BatchEnvironment.SubmitRetryInterval))
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment