luno / workflow

A tech stack agnostic Event Driven Workflow framework, written in Go, that supports durable, robust, and idempotent state changes with timeouts, callbacks, scheduled triggers, and await calls. Compatible with Kafka and Reflex out of the box.
BSD 3-Clause "New" or "Revised" License
112 stars 8 forks source link

workflow: Add hooks to builder #55

Closed andrewwormald closed 3 weeks ago

andrewwormald commented 1 month ago

This MR / PR focuses on adding the ability to write a short hand consumer for RunState changes. This was always possible before but would require the user to use the correct topic setup or if using Reflex using a StreamFunc to stream and filter by RunState. These are simpler and more discoverable being part of the builder and does not extend the feature set but rather enhances the discoverability of what already exists.

sonarcloud[bot] commented 4 weeks ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
99.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud