Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

darkobuvac
Copy link
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

@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 :)

@@ -127,3 +127,20 @@ management.metrics.export.datadog.enabled=false
#optional - default Datadog instance is https://app.datadoghq.com/
# 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

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
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
3 participants