-
Notifications
You must be signed in to change notification settings - Fork 2.3k
do not synchronously eval workflow during update task for select criteria #3146
Conversation
core/src/main/java/com/netflix/conductor/core/execution/WorkflowExecutor.java
Show resolved
Hide resolved
@@ -168,6 +168,10 @@ public static void recordGauge(String name, long count) { | |||
gauge(classQualifier, name, count); | |||
} | |||
|
|||
public static void recordCounter(String name, long count, String... additionalTags) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to use this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i noticed that we have a public method for gauge but not for a counter. Further, I plan to use the counter.
@@ -183,6 +183,9 @@ class DecisionTaskSpec extends AbstractSpecification { | |||
when: "the task 'integration_task_20' is polled and completed" | |||
def polledAndCompletedTask20Try1 = workflowTestUtil.pollAndCompleteTask('integration_task_20', 'task1.integration.worker') | |||
|
|||
and: "the workflow is evaluated" | |||
sweep(workflowInstanceId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this changes in tests? same comment for the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As part of the changes introduced, the workflow will be evaluated lazily for a join task, so we simulate the lazy evaluation by calling a sweep here.
0269543
to
758115a
Compare
758115a
to
03a6251
Compare
…eria (Netflix#3146) * do not synchronously eval workflow under select criteria * expedite lazy evaluation with higher priority
Pull Request type
./gradlew generateLock saveLock
to refresh dependencies)NOTE: Please remember to run
./gradlew spotlessApply
to fix any format violations.Changes in this PR
Describe the new behavior from this PR, and why it's needed
Issue #
Alternatives considered
Describe alternative implementation you have considered