Is the database_required decorated properly wrapped?

Antonio BULGHERONI
2026-02-28T16:49:13Z

There is no wrap in the inner function. Is it returning the proper doc of the start method?

possible solution:

```python
def database_required(cls):
"""Modify the processor start method to check if a database object exists.

This decorator must be applied to processors requiring a database connection.

:param cls: A Processor class.
"""
orig_start = cls.start

@functools.wrap(cls.start)
def _start(self):
if self.database is None:
raise MissingDatabase(f'{self.name} requires an active database.')
orig_start(self)

cls.start = _start

return cls
```