# has_pending_hooks

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/has_pending_hooks)

Return whether fire-and-forget hook tasks are still in flight.

## Signature

```python
has_pending_hooks() -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/hooks.py#L318)