Conversation
WalkthroughThe change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant WebsiteService
participant TemporalWebsite
Caller->>WebsiteService: terminateWebsiteWorkflow(communityId)
WebsiteService->>TemporalWebsite: terminateWorkflow("website:ingestor:" + communityId)
TemporalWebsite-->>WebsiteService: Success/Error Response
WebsiteService-->>Caller: Final Response/Error
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/services/website/core.service.ts (1)
30-33: Improved parameter naming and workflow identification strategy.The change from
workflowIdtocommunityIdmakes the function's purpose clearer, while constructing the workflow ID with a consistent format (website:ingestor:${communityId}) ensures reliable workflow identification. This is a good fix that likely resolves issues with workflow termination.Consider adding a brief comment explaining this ID format to improve maintainability:
async function terminateWebsiteWorkflow(communityId: string): Promise<void> { try { + // Format: website:ingestor:{communityId} is the convention for identifying community-specific website workflows await temporalWebsite.terminateWorkflow(`website:ingestor:${communityId}`);
Summary by CodeRabbit