# Use Search API for hotfix monitor to avoid job cancellation \(\#51880\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/953d87d63b80ccc80417f443d584047209c136a8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 953d87d63b80ccc80417f443d584047209c136a8

Requested commit: 953d87d63b80ccc80417f443d584047209c136a8

Commit: 953d87d63b80ccc80417f443d584047209c136a8

Tree: 592854a003ede9abfa1dec509c856c40fbbe9407

Author: John D\. Swanson

Committer: GitHub

## Message

```
Use Search API for hotfix monitor to avoid job cancellation (#51880)

## Summary

- The Pulls API with `state=closed` paginates through all closed PRs in
the repo. On a repo as active as Zed, this exceeds the 5-minute job
limit ([failed
run](https://github.com/zed-industries/zed/actions/runs/23271617583)).
- Switch to the Search API which supports `merged:>DATE` natively, so
GitHub filters server-side and returns only matching hotfix PRs.
- Tested against the Zed repo — query completes in seconds.

Release Notes:

- N/A
```

## Parents

- [695382e078acfd8b5c4f512abf7e42127dc0b912](https://git.cafe/gitcafe/zed/commit/695382e078acfd8b5c4f512abf7e42127dc0b912?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/953d87d63b80ccc80417f443d584047209c136a8?format=markdown)
