core/services/workflows/v2: fix WorkflowLimit usage with conditional freeing of resources#22355
Conversation
…freeing of resources
|
👋 jmank88, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
|
I see you updated files related to
|
|
✅ No conflicts with other open PRs targeting |
| // apply global engine instance limits | ||
| // TODO(CAPPL-794): consider moving this outside of the engine, into the Syncer | ||
| err := e.cfg.GlobalExecutionConcurrencyLimiter.Use(ctx, 1) | ||
| err := e.cfg.GlobalWorkflowLimit.Use(ctx, 1) |
There was a problem hiding this comment.
Since this is happening during init rather than start, we cannot unconditionally free from close.
|
|




No description provided.