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

Workflow execution and scheduling latency #7370

Merged
merged 84 commits into from Jan 30, 2024

Conversation

ASHIQUEMD
Copy link
Contributor

@ASHIQUEMD ASHIQUEMD commented Jan 12, 2024

Description

We are adding metrics to measure Dapr workflow execution and scheduling latency. The calculation strategy for these metrics is defined here.

This PR should be merged after dtf-go pr is merged.

Issue reference

Please reference the issue this PR will close: #7109

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing

prateek041 and others added 30 commits November 6, 2023 23:43
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
- Operations
- Reminders
- Execution

Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
- Create Workflow
- Get Workflow
- Purge Workflow
- Add Events

Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
executions.

Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: prateek041 <prateeksingh9741@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
dapr.sln Outdated Show resolved Hide resolved
ASHIQUEMD and others added 9 commits January 17, 2024 16:32
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
…ssage

Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
…ssage

Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
…ssage

Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
…ssage

Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
@shivamkm07
Copy link
Contributor

LGTM. Just one comment - We can possibly add an integration test for execution latency here:

t.Run("workflow", func(t *testing.T) {

e.g. a workflow with a sleep(5 seconds) should have executionLatency > 5sec
(We can actually add for scheduling latency too like for workflow with ScheduledStartTimeStamp set to T, SchedulingLatency > T - currentTime but this test won't pass since scheduling doesn't work correctly as of now: #7354)

@yaron2 yaron2 merged commit f818e70 into dapr:master Jan 30, 2024
30 of 32 checks passed
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
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.

[Workflow] Adding metrics for Dapr Workflow
9 participants