rabbah commented on a change in pull request #3031: Return 202 for trigger fire
requests
URL:
https://github.com/apache/incubator-openwhisk/pull/3031#discussion_r154786022
##########
File path: core/controller/src/main/scala/whisk/core/controller/Triggers.scala
##########
@@ -155,19 +155,22 @@ trait WhiskTriggersApi extends WhiskCollectionAPI {
case (ruleName, rule) => rule.status == Status.ACTIVE
} foreach {
case (ruleName, rule) =>
+ val ruleActivationId = activationIdFactory.make()
val ruleActivation = WhiskActivation(
namespace = user.namespace.toPath, // all activations should
end up in the one space regardless trigger.namespace,
ruleName.name,
user.subject,
- activationIdFactory.make(),
+ ruleActivationId,
Instant.now(Clock.systemUTC()),
Instant.EPOCH,
cause = Some(triggerActivationId),
response = ActivationResponse.success(),
version = trigger.version,
duration = None)
- logging.info(this, s"[POST] rule ${ruleName} activated,
writing activation record to datastore")
- WhiskActivation.put(activationStore, ruleActivation)
+ WhiskActivation.put(activationStore, ruleActivation) recover {
+ case t =>
Review comment:
I thought you were going to remove this one too.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services