Skip to content

fix: preserve explicit zero polling durations - #205

Open
yigitcan-ozturk wants to merge 1 commit into
xai-org:mainfrom
yigitcan-ozturk:fix/poll-timer-zero-duration
Open

fix: preserve explicit zero polling durations#205
yigitcan-ozturk wants to merge 1 commit into
xai-org:mainfrom
yigitcan-ozturk:fix/poll-timer-zero-duration

Conversation

@yigitcan-ozturk

Copy link
Copy Markdown

Checklist

  • I have read both the CONTRIBUTING.md and Contributor License Agreement documents.
  • I have created an issue or feature request and received approval from xAI maintainers. (minor changes like fixing typos can skip this step)
  • I have tested my changes locally and they pass all CI checks.
  • No documentation changes are required for this internal bug fix.

Description

PollTimer currently uses truthiness to apply defaults:

self._timeout = timeout or datetime.timedelta(minutes=10)
self._interval = interval or datetime.timedelta(seconds=1)

@yigitcan-ozturk
yigitcan-ozturk requested a review from a team as a code owner September 1, 2026 13:06
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