Sam Wolstencroft

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Also, what is the best seam to use to test the config.if and config.unless logic? Is it to check for an enqueued job?

The video talks about implementing a sort of escalated notification. Like send a slack web hook and then in 5 minutes send an email but not if the recipient already saw the slack web hook.

Is building block for this intended to be something like

config.unless = ->(recipient) {
  self.read?
}

Because there will only be 1 notification no matter how many delivery methods. And the lambda passed to config.if or config.unless is evaluated in the context of the notification so it knows if it has been read?