Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix task delay for specific time with milliseconds #404

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

megalaren
Copy link
Contributor

When using the .schedule_by_time() method, I encountered a problem where the task starts more than 1 second earlier than the scheduled time. I believe the scheduler should not start tasks before the specified time.
This PR fixes this issue. Also added a test that simulates my problem.

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.54%. Comparing base (fec9633) to head (188d0cb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
+ Coverage   77.51%   77.54%   +0.03%     
==========================================
  Files          62       62              
  Lines        1899     1902       +3     
==========================================
+ Hits         1472     1475       +3     
  Misses        427      427              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@s3rius
Copy link
Member

s3rius commented Feb 4, 2025

LGTM. Will be released soon.

@s3rius s3rius merged commit 40f5579 into taskiq-python:master Feb 4, 2025
35 checks passed
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