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

Handle large Confluence workflows #4214

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

flvndvd
Copy link
Contributor

@flvndvd flvndvd commented Mar 8, 2024

Description

This PR addresses a problem where certain Confluence connectors exceed the maximum allowed size for Temporal workflows. Currently, the maximum workflow history size is approximately 50,000 events. To prevent reaching this limit and potentially causing issues, this PR introduces a mechanism to continue the workflow in a new instance once the history size reaches 30,000 events.

Risk

Deploy Plan

@flvndvd flvndvd marked this pull request as ready for review March 8, 2024 10:12
localLogger.info("Found Confluence top-level pages in space.", {
topLevelPagesCount: childPageIds.length,
});
localLogger.info(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🚗

Copy link
Contributor

@philipperolet philipperolet left a comment

Choose a reason for hiding this comment

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

LGTM with nit, merge once fixed 👍

@@ -39,6 +40,8 @@ const {
startToCloseTimeout: "20 minutes",
});

const MAX_HISTORY_LENGTH = 30_000;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: TEMPORAL_WORKFLOW_MAX...
with com explaining for the future noob why this is there (a single confluence workflow may visit more than X pages, this breaks...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@flvndvd flvndvd merged commit 348e0de into main Mar 8, 2024
5 checks passed
@flvndvd flvndvd deleted the flav/handle-large-confluence-workflow branch March 8, 2024 10:47
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.

2 participants