-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2821 from broadinstitute/ks_centaur_cwl_runner
Added CentaurCwlRunner.
- Loading branch information
Showing
45 changed files
with
1,460 additions
and
1,311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
akka.http.host-connection-pool.max-open-requests: 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
centaur/src/main/resources/application.conf → centaur/src/main/resources/reference.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
akka.http.host-connection-pool.max-open-requests: 128 | ||
|
||
centaur { | ||
|
||
cromwell { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
centaur/src/main/scala/centaur/api/DaemonizedDefaultThreadFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package centaur.api | ||
|
||
import java.util.concurrent.ThreadFactory | ||
import java.util.concurrent.atomic.AtomicInteger | ||
|
||
/** | ||
* A static version of java.util.concurrent.Executors.DefaultThreadFactory that creates daemon threads that exit when | ||
* the application exits. | ||
* | ||
* See also: java.util.concurrent.Executors.DefaultThreadFactory | ||
* See also: http://dev.bizo.com/2014/06/cached-thread-pool-considered-harmlful.html | ||
* > Always provide your own ThreadFactory so all your threads are named appropriately and have the daemon flag set. | ||
* > Your thread pool shouldn't keep the application alive. That's the responsibility of the application itself (i.e., | ||
* > main thread). | ||
*/ | ||
object DaemonizedDefaultThreadFactory extends ThreadFactory { | ||
private val s = System.getSecurityManager | ||
private val group = if (s != null) s.getThreadGroup else Thread.currentThread.getThreadGroup | ||
private val threadNumber = new AtomicInteger(1) | ||
private val namePrefix = "daemonpool-thread-" | ||
|
||
override def newThread(r: Runnable): Thread = { | ||
val t = new Thread(group, r, namePrefix + threadNumber.getAndIncrement, 0) | ||
if (!t.isDaemon) t.setDaemon(true) | ||
if (t.getPriority != Thread.NORM_PRIORITY) t.setPriority(Thread.NORM_PRIORITY) | ||
t | ||
} | ||
} |
Oops, something went wrong.