PrefectHQ
prefect
BlogDocsChangelog

Add `end_time` filters for flow runs and task runs

#19107
Comparing
add-end-time-filters-9698
(
2538bd5
) with
main
(
e396f0d
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
458.3 µs459.1 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.3 s1.4 s

Ignored

bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+8%
175.4 ms162.9 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-1%
104.9 ms106.1 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+20%
5.8 ms4.8 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+2%
168.1 ms165.1 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-5%
4.2 ms4.4 ms

Commits

Click on a commit to change the comparison range
Base
main
e396f0d
-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
1 day 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
1 day 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
1 day 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
1 day ago
by github-actions[bot]
© 2025 CodSpeed Technology
Home Terms Privacy Docs