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

refactor(core): Rename ActiveWorkflowRunner to ActiveWorkflowManager (no-changelog) #9280

Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented May 2, 2024

We have WorkflowService, ExecutionService, WorkflowExecutionService, WorkflowRunner, ActiveExecutions, ActiveWorkflows, and ActiveWorkflowRunner - the overlap in semantics and responsibilities makes the workflow execution lifecycle hard to follow.

This PR is the first of a series:

  • Rename ActiveWorkflowRunner to ActiveWorkflowManager
  • Combine WorkflowExecutionService with WorkflowRunner as RunnerService
  • Move execution stopping logic from ExecutionService to RunnerService

@ivov ivov requested a review from a team as a code owner May 2, 2024 07:35
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels May 2, 2024
Copy link
Contributor

@despairblue despairblue left a comment

Choose a reason for hiding this comment

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

I checked how much conflicts this would cause with feature/rbac, but it's manageable.

I found some variables that still mention Runner. I saw that you renamed most of the others to be called ...Manager, maybe we can rename the remaining ones as well to have this consistent. What do you think?

@ivov
Copy link
Contributor Author

ivov commented May 3, 2024

Thanks for reviewing!

how much conflicts

Happy to wait! I'll leave it up to you.

some variables that still mention

Fixed!

@ivov ivov requested a review from despairblue May 6, 2024 07:42
despairblue
despairblue previously approved these changes May 6, 2024
Copy link
Contributor

@despairblue despairblue left a comment

Choose a reason for hiding this comment

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

Happy to wait! I'll leave it up to you.

No need to wait. The merge should be easy enough.

Copy link

cypress bot commented May 6, 2024

1 flaky test on run #4874 ↗︎

0 359 12 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: d98a70e0ff
Status: Passed Duration: 04:15 💡
Started: May 6, 2024 3:43 PM Ended: May 6, 2024 3:47 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video

Review all test suite changes for PR #9280 ↗︎

Copy link
Contributor

github-actions bot commented May 6, 2024

✅ All Cypress E2E specs passed

@ivov ivov merged commit 7b925ab into master May 6, 2024
33 checks passed
@ivov ivov deleted the rename-active-workflow-runner-to-active-workflow-manager branch May 6, 2024 15:54

This comment was marked as resolved.

@janober
Copy link
Member

janober commented May 8, 2024

Got released with [email protected]

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.

None yet

3 participants