Skip to content

Add metrics to workflows #12829

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

Merged
merged 3 commits into from
Jun 24, 2025
Merged

Add metrics to workflows #12829

merged 3 commits into from
Jun 24, 2025

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jun 24, 2025

  • ensure each trigger is working properly
  • check throttle does not happen too often
  • keep an eye on the completed/failed proportion

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added comprehensive metrics tracking to the workflow system to monitor execution health and performance.

  • Implemented workflow completion metrics in packages/twenty-server/src/modules/workflow/workflow-runner/workflow-run/workflow-run.workspace-service.ts to track success/failure rates
  • Added trigger-specific metrics in packages/twenty-server/src/modules/workflow/workflow-runner/jobs/run-workflow.job.ts for DATABASE_EVENT, CRON, WEBHOOK, and MANUAL triggers
  • Integrated throttling metrics to monitor rate limiting occurrences and prevent excessive executions
  • Defined new metric keys in engine/core-modules/metrics/types/metrics-keys.type.ts for standardized tracking across the system
  • Added MetricsModule imports across workflow modules following NestJS architectural patterns

5 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Jun 24, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:35818

This environment will automatically shut down when the PR is closed or after 5 hours.

@thomtrp thomtrp force-pushed the tt-add-metrics-to-workflow-run branch from 24db651 to 7b027f5 Compare June 24, 2025 13:28
@charlesBochet charlesBochet merged commit b063510 into main Jun 24, 2025
36 checks passed
@charlesBochet charlesBochet deleted the tt-add-metrics-to-workflow-run branch June 24, 2025 13:31
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 26, 2025
- ensure each trigger is working properly
- check throttle does not happen too often
- keep an eye on the completed/failed proportion
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.

2 participants