Skip to content
Snippets Groups Projects
Commit 7fae6add authored by Rodric Rabbah's avatar Rodric Rabbah
Browse files

Use custom thread pool in activator for db operations.

Fail deployment on error to deploy database.
Enable new Spray-based Cloudant API.
parent f634a588
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@
<target name="deployDatabase">
<var file="whisk.properties" />
<echo message="wiping databases with prefix ${db.prefix}" />
<exec dir="${openwhisk.home}/tools/db" executable="/bin/bash">
<exec dir="${openwhisk.home}/tools/db" executable="/bin/bash" failonerror="true">
<arg value="wipeTransientDBs.sh" />
</exec>
</target>
......
......@@ -42,6 +42,7 @@ import whisk.core.entity.WhiskEntity
import whisk.core.entity.WhiskEntityStore
import whisk.core.entity.WhiskRule
import whisk.http.BasicRasService
import whisk.utils.ExecutionContextFactory
/**
* A kafka message handler that interprets a database of whisk rules, and
......@@ -221,7 +222,7 @@ object ActivatorService {
if (config.isValid) {
val dispatcher = new Dispatcher(config, "whisk", "activator")
val activator = new Activator(config, dispatcher, actorSystem, Dispatcher.executionContext)
val activator = new Activator(config, dispatcher, actorSystem, ExecutionContextFactory.makeExecutionContext())
activator.setVerbosity(Verbosity.Loud)
dispatcher.setVerbosity(Verbosity.Loud)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment