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

fix(core): Flush instance stopped event immediately #10238

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Conversation

tomi
Copy link
Contributor

@tomi tomi commented Jul 30, 2024

Summary

  1. fix(core): Flush instance stopped event immediately

Rudderstack flushes events after 20 events have been batched or
10 seconds have elapsed since the last flush. Since we were
waiting for the 'User instance stopped' event to be sent before
calling flush, we might have waited up to 10 seconds before
the event got sent. Instead call the flush right away to send the
stopped and any other remaining events immediately.

  1. refactor(core): Make telemetry track & identify synchronous

We are not actually waiting for the track & identify events anywhere,
so it doesn't make sense to have the method async.

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Rudderstack flushes events after 20 events have been batched or
10 seconds have elapsed since the last flush. Since we were
waiting for the 'User instance stopped' event to be sent before
calling flush, we might have waited up to 10 seconds before
the event got sent. Instead call the flush right away to send the
stopped and any other remaining events immediately.
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jul 30, 2024
@tomi tomi requested a review from netroy July 30, 2024 10:32
We are not actually waiting for the track & identify events anywhere,
so it doesn't make sense to have the method async.
Copy link

cypress bot commented Jul 30, 2024



Test summary

389 0 0 0Flakiness 1


Run details

Project n8n
Status Passed
Commit 44d53f2
Started Jul 30, 2024 11:32 AM
Ended Jul 30, 2024 11:37 AM
Duration 04:36 💡
OS Linux Debian -
Browser Electron 118

View run in Cypress Cloud ➡️


Flakiness

e2e/19-execution.cy.ts Flakiness
1 Execution > connections should be colored differently for pinned data > when executing a node

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

Copy link
Contributor

✅ All Cypress E2E specs passed

@tomi tomi merged commit d6770b5 into master Jul 30, 2024
31 checks passed
@tomi tomi deleted the fix-telemetry-shutdown branch July 30, 2024 11:49
@github-actions github-actions bot mentioned this pull request Jul 31, 2024
@janober
Copy link
Member

janober commented Jul 31, 2024

Got released with n8n@1.53.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants