Skip to content

Fix memory leak from orphaned invocations on deployment deletion#127

Open
Chandraveersingh1717 wants to merge 1 commit intometacall:masterfrom
Chandraveersingh1717:fix/memory-leak-orphaned-invocations
Open

Fix memory leak from orphaned invocations on deployment deletion#127
Chandraveersingh1717 wants to merge 1 commit intometacall:masterfrom
Chandraveersingh1717:fix/memory-leak-orphaned-invocations

Conversation

@Chandraveersingh1717
Copy link
Copy Markdown

Problem

When a deployment is deleted, pending invocations in the global queue are not cleaned up. This causes:

  • Memory leak as orphaned invocations remain in the queue indefinitely
  • Potential crashes when workers try to resolve invocations from deleted deployments

Solution

  • Track deployment ownership by adding suffix field to invocations
  • Clean up deployment-specific invocations before killing worker process
  • Handle race conditions with safe null checks

Testing

  • All existing tests pass
  • No ESLint errors or warnings

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.

1 participant