Skip to content

CxODEV-459 Conductor: Add support for publishing wf/task events to RabbitMQ#1

Open
darkobuvac wants to merge 13 commits intomainfrom
feature/rabbitmq-wf-status-listener
Open

CxODEV-459 Conductor: Add support for publishing wf/task events to RabbitMQ#1
darkobuvac wants to merge 13 commits intomainfrom
feature/rabbitmq-wf-status-listener

Conversation

@darkobuvac
Copy link
Copy Markdown
Collaborator

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

Changes in this PR

Support for publishing workflow and task events to external message broker, in this case RabbitMQ, by implementing workflow and task status listeners that are used by workflow executor class. This functionality is enabling a dedicated microservice to actively listen for these updates, subsequently triggering specific actions.

Alternatives considered

--

Copy link
Copy Markdown

@tymarats tymarats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

# management.metrics.export.datadog.uri=<your DD instance>
#management.metrics.export.datadog.step=10s

#Following properties set for using for publishing workflow/task status change event to RabbitMQ:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Looking around, I see that "non-code" comments should have a space between # and the sentence (not unlike our own .NET Coding Conventions)

@Override
public void onWorkflowTerminatedIfEnabled(WorkflowModel workflow) {
if (workflow.getWorkflowDefinition().isWorkflowStatusListenerEnabled()
|| rabbitMQProperties.isWorkflowStatusListenerEnabled()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should rename isWorkflowStatusListenerEnabled to something like shouldAlwaysPublishWorkflowStatus sa it more accurately reflects what it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants