Using all events
This commit is contained in:
parent
778a2045a0
commit
3efc04744c
@ -48,6 +48,10 @@ class CompletedTaskListener: CoordinatorEventListener() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun shouldIHandleFailedEvents(incomingEvent: Event): Boolean {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
override var coordinator: Coordinator? = null
|
override var coordinator: Coordinator? = null
|
||||||
@ -178,7 +182,7 @@ class CompletedTaskListener: CoordinatorEventListener() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req3(started.data?.operations ?: emptyList(), viableEvents)) {
|
if (!req3(started.data?.operations ?: emptyList(), events)) {
|
||||||
//log.info { "${this::class.java.simpleName} Failed Req3" }
|
//log.info { "${this::class.java.simpleName} Failed Req3" }
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -401,9 +405,6 @@ class CompletedTaskListener: CoordinatorEventListener() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun shouldIProcessAndHandleEvent(incomingEvent: Event, events: List<Event>): Boolean {
|
override fun shouldIProcessAndHandleEvent(incomingEvent: Event, events: List<Event>): Boolean {
|
||||||
if (doNotProduceComplete) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
val result = super.shouldIProcessAndHandleEvent(incomingEvent, events)
|
val result = super.shouldIProcessAndHandleEvent(incomingEvent, events)
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
@ -433,14 +434,14 @@ class CompletedTaskListener: CoordinatorEventListener() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!doNotProduceComplete) {
|
||||||
|
onProduceEvent(MediaProcessCompletedEvent(
|
||||||
onProduceEvent(MediaProcessCompletedEvent(
|
metadata = event.makeDerivedEventInfo(EventStatus.Success, getProducerName()),
|
||||||
metadata = event.makeDerivedEventInfo(EventStatus.Success, getProducerName()),
|
data = CompletedEventData(
|
||||||
data = CompletedEventData(
|
events.map { it.eventId() }
|
||||||
events.map { it.eventId() }
|
)
|
||||||
)
|
))
|
||||||
))
|
}
|
||||||
active = false
|
active = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user