Skip to content

Validate task decorator timeout values#2713

Open
Thanhdn1984 wants to merge 1 commit into
orchestration-agent:mainfrom
Thanhdn1984:susan-fix-2623-timeout-validation
Open

Validate task decorator timeout values#2713
Thanhdn1984 wants to merge 1 commit into
orchestration-agent:mainfrom
Thanhdn1984:susan-fix-2623-timeout-validation

Conversation

@Thanhdn1984
Copy link
Copy Markdown

Fixes #2623.\n\nChanges:\n- Reject non-numeric task timeouts with TypeError.\n- Reject zero/negative task timeouts with ValueError.\n- Add regression tests for invalid timeout values.\n\nProof:\n- pytest -q tests/test_sdk_decorators.py tests/test_config.py → 8 passed.\n- Full pytest -q currently hits pre-existing collection error in tests/test_scheduler.py: ImportError: cannot import name AgentStatus from src.agent.\n\nBounty gate:\n- gh repo view orchestration-agent/AgentOrchestration --json viewerHasStarred --jq .viewerHasStarred → true.

@Thanhdn1984
Copy link
Copy Markdown
Author

Implemented for bounty issue #2623. Proof: pytest -q tests/test_sdk_decorators.py tests/test_config.py → 8 passed. Viewer has starred repo: true.

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.

[ Bounty $6k ] [ SDK ] Validate task decorator timeout values — decorator guardrails

1 participant