Skip to content

fix: wider spaces between leaderboard copy pipes to prevent hitting queue limits#3868

Open
epipav wants to merge 3 commits intomainfrom
bugfix/spreading-leaderboard-copy-pipes-wider
Open

fix: wider spaces between leaderboard copy pipes to prevent hitting queue limits#3868
epipav wants to merge 3 commits intomainfrom
bugfix/spreading-leaderboard-copy-pipes-wider

Conversation

@epipav
Copy link
Collaborator

@epipav epipav commented Feb 24, 2026

Note

Low Risk
Only changes scheduled execution times for COPY pipes and adds a developer script; risk is mainly mis-timing or missed cadence if cron expressions are wrong.

Overview
Adjusts multiple leaderboard Tinybird pipes to spread out COPY_SCHEDULEs (moving several jobs from the same minute/hour to later minutes and into subsequent hours) to avoid copy queue contention/limits.

Adds services/libs/tinybird/scripts/push.sh, a small CLI helper to run tb push over the pipes/ directory with an optional --match filter for pushing only a subset of pipes.

Written by Cursor Bugbot for commit 0746782. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

3 similar comments
@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

TARGET_DATASOURCE leaderboards_copy_ds
COPY_MODE append
COPY_SCHEDULE 15 1 * * *
COPY_SCHEDULE 0 2 * * *
Copy link

Choose a reason for hiding this comment

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

New schedule collision with existing daily copy pipe

Medium Severity

leaderboards_merge_time.pipe was moved to COPY_SCHEDULE 0 2 * * *, which is the exact same schedule as the existing project_insights_copy.pipe (also 0 2 * * *). This introduces a new concurrent execution that didn't exist before (it was previously at 15 1 * * *), working against the PR's goal of reducing queue pressure. Several hourly copy pipes also fire at :00, compounding the overlap at the 2:00 AM slot.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@epipav epipav self-assigned this Feb 24, 2026
@github-actions
Copy link
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@epipav epipav requested a review from joanagmaia February 24, 2026 15:02
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Push only files containing "leaderboards_" in their name

EOF
exit 0
Copy link

Choose a reason for hiding this comment

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

Error paths exit with success status code

Low Severity

show_help unconditionally calls exit 0, but it's also invoked from the error paths for unknown options and missing --match argument. This causes the script to report success even when it fails to parse arguments and performs no work. If used in automation or chained with &&, the silent success on error could mask a failure to push any pipes.

Additional Locations (2)

Fix in Cursor Fix in Web

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