Skip to content

fix(testcontainers): set TRIGGERS read batch size for Prefect backgro…#9371

Draft
fatih-acar wants to merge 1 commit into
stablefrom
fac-test-containers-missing-parameter
Draft

fix(testcontainers): set TRIGGERS read batch size for Prefect backgro…#9371
fatih-acar wants to merge 1 commit into
stablefrom
fac-test-containers-missing-parameter

Conversation

@fatih-acar
Copy link
Copy Markdown
Contributor

@fatih-acar fatih-acar commented May 28, 2026

…und service

The task-manager-background-svc enables PREFECT_SERVER_SERVICES_TRIGGERS but doesn't tune its READ_BATCH_SIZE, unlike EVENT_PERSISTER and TASK_RUN_RECORDER. Add the missing var (default 1, override via INFRAHUB_TESTING_TASKMGR_TRIGGERS_READ_BATCH_SIZE) in both docker-compose.test.yml and docker-compose-cluster.test.yml.

Why

Closes

What changed

How to review

How to test

# Commands to validate

Impact & rollout

  • Backward compatibility:
  • Performance:
  • Config/env changes:
  • Deployment notes:

Checklist

  • Tests added/updated
  • Changelog entry added (uv run towncrier create ...)
  • External docs updated (if user-facing or ops-facing change)
  • Internal .md docs updated (internal knowledge and AI code tools knowledge)
  • I have reviewed AI generated content

Summary by cubic

Set PREFECT_SERVER_SERVICES_TRIGGERS_READ_BATCH_SIZE for the task-manager background service in testcontainers to align with other Prefect services and keep tests predictable. Default is 1, with an override via INFRAHUB_TESTING_TASKMGR_TRIGGERS_READ_BATCH_SIZE in both docker-compose.test.yml and docker-compose-cluster.test.yml.

Written for commit f041ac0. Summary will update on new commits.

Review in cubic

…und service

The task-manager-background-svc enables PREFECT_SERVER_SERVICES_TRIGGERS
but doesn't tune its READ_BATCH_SIZE, unlike EVENT_PERSISTER and
TASK_RUN_RECORDER. Add the missing var (default 1, override via
INFRAHUB_TESTING_TASKMGR_TRIGGERS_READ_BATCH_SIZE) in both
docker-compose.test.yml and docker-compose-cluster.test.yml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Shadow auto-approve: would auto-approve. This change adds a new environment variable to set the triggers read batch size in testcontainers for the task-manager background service, aligning with similar settings for other Prefect services and keeping test behavior predictable.

Re-trigger cubic

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