PrefectHQ
prefect
BlogDocsChangelog

Add `end_time` filters for flow runs and task runs

#19107
Comparing
add-end-time-filters-9698
(
a27f6fd
) with
main
(
9bae64b
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
460.1 µs460.2 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+5%
171.2 ms163.7 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+11%
4.4 ms3.9 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-1%
105.3 ms106 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-2%
164.4 ms168.6 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1 s1.1 s
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-11%
5.3 ms6 ms

Commits

Click on a commit to change the comparison range
Base
main
9bae64b
-0.13%
Add end_time filters for flow runs and task runs Adds end_time filtering capability to FlowRunFilter and TaskRunFilter, allowing users to query for runs that finished before/after a specific time or that haven't finished yet (is_null). This completes the time-based filtering API by providing end_time filters that match the existing start_time filter patterns. Closes #9698 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3ec80ac
25 days ago
by desertaxle
-0.15%
Move end_time filter tests to models test file - Reverted test changes in tests/server/schemas/test_filters.py - Added end_time filter tests to tests/server/models/test_filters.py - Tests cover both FlowRun and TaskRun end_time filters with is_null_ checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
080ed11
25 days ago
by github-actions[bot]
+0.09%
Add before_ and after_ tests for end_time filters Add test coverage for before_ and after_ options on both FlowRunFilterEndTime and TaskRunFilterEndTime to ensure these filter options work correctly. Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
dcf30d7
25 days ago
by github-actions[bot]
-0.01%
Fix end_time filter tests by adding start_time to test data The end_time field is automatically set by the orchestration layer only when a run enters a final state AND has a start_time set. The test data was creating flow runs and task runs with Completed/Failed states but without start_time, causing end_time to never be set. This commit adds start_time to all flow runs and task runs with terminal states (Completed, Failed) in the test fixture data, ensuring that end_time gets properly set by the orchestration layer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
2538bd5
25 days ago
by github-actions[bot]
+0.08%
Merge branch 'main' into add-end-time-filters-9698
87dade1
17 days ago
by desertaxle
+0.03%
Merge branch 'main' into add-end-time-filters-9698
a27f6fd
11 days ago
by desertaxle
© 2025 CodSpeed Technology
Home Terms Privacy Docs