Skip to content

feat(conserver): add delay test link for chain concurrency QA#194

Merged
pavanputhra merged 1 commit into
mainfrom
pavankumar/con-624-add-a-delay-test-link-to-make-chains-take-measurable-time
Jun 18, 2026
Merged

feat(conserver): add delay test link for chain concurrency QA#194
pavanputhra merged 1 commit into
mainfrom
pavankumar/con-624-add-a-delay-test-link-to-make-chains-take-measurable-time

Conversation

@pavanputhra

Copy link
Copy Markdown
Contributor

Adds a small delay link under conserver/links/delay/. It sleeps for a configurable number of seconds and passes the vCon through unchanged — a test fixture for making a chain take a predictable amount of wall-clock time so concurrent/parallel processing can be observed.

  • options.seconds (default 5) — sleep duration; negative values clamp to 0.
  • Does not read or modify the vCon; returns the UUID so the chain continues.
  • Follows the standard link layout (AUDIT_META, default_options, run), with unit tests (mocking time.sleep) and a README.

Intended for test/staging chains, not production.

Usage

links:
  delay_10s:
    module: links.delay
    options:
      seconds: 10

Testing

pytest conserver/links/delay/test_delay.py

All 4 tests pass (sleep is mocked, so they run instantly).

🤖 Generated with Claude Code

A pass-through link that sleeps a configurable number of seconds so a chain
takes predictable wall-clock time, letting QA observe per-worker vCon
concurrency. Never reads or modifies the vCon. Includes unit tests and README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pavanputhra pavanputhra merged commit 0e0220a into main Jun 18, 2026
1 check passed
@pavanputhra pavanputhra deleted the pavankumar/con-624-add-a-delay-test-link-to-make-chains-take-measurable-time branch June 18, 2026 11:20
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