Code styling tweaks to the recorder integration (#86030)

This commit is contained in:
Franck Nijhof 2023-01-16 19:51:11 +01:00 committed by GitHub
parent 5b2c1d701a
commit c5dedb7a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 82 additions and 43 deletions

View file

@ -121,7 +121,10 @@ class PurgeEntitiesTask(RecorderTask):
@dataclass
class PerodicCleanupTask(RecorderTask):
"""An object to insert into the recorder to trigger cleanup tasks when auto purge is disabled."""
"""An object to insert into the recorder to trigger cleanup tasks.
Trigger cleanup tasks when auto purge is disabled.
"""
def run(self, instance: Recorder) -> None:
"""Handle the task."""
@ -195,7 +198,10 @@ class AdjustStatisticsTask(RecorderTask):
@dataclass
class WaitTask(RecorderTask):
"""An object to insert into the recorder queue to tell it set the _queue_watch event."""
"""An object to insert into the recorder queue.
Tell it set the _queue_watch event.
"""
commit_before = False