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

Fixed long delays never returning in DateTimeTrigger #17564

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

andrewgodwin
Copy link
Contributor

@andrewgodwin andrewgodwin commented Aug 11, 2021

This trigger was never actually firing for delays over two hours, as it was comparing a Pendulum.Period to a datetime.datetime, in a way that always returned True for certain dates (especially those a long time in the past).

This commit fixes the behaviour. This unfortunately seems un-testable, as it's not possible to interrupt asyncio's sleep() while it's in-flight.

@andrewgodwin andrewgodwin changed the title Fixed long delays never returning in the Temporal trigger Fixed long delays never returning in DateTimeTrigger Aug 11, 2021
This trigger was never actually working for delays over two hours, as it
was comparing a Pendulum.Period to a datetime.datetime, in a way that
always returned True.

This commit fixes the behaviour. This unfortunately seems un-testable,
as it's not possible to interrupt asyncio's sleep() while it's
in-flight.
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Aug 12, 2021
@kaxil kaxil merged commit 8b03d9d into apache:main Aug 12, 2021
@kaxil kaxil deleted the fix_temporal_trigger branch August 12, 2021 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants