feat(conversations,jobs): a manual run of the rotation job rotates the master now

This commit is contained in:
hh committed 2026-10-19 13:51:15 +02:00
1 parent 7b36cb2156
commit 8f26263d4a
3 files changed
+25 -4

No files matched your search

+2 -2
View File
@@ -118,9 +118,9 @@ class JobRun:
self.job, self.payload, delay=delay, trigger=self.trigger
)
async def rotate(self) -> list[Conversation]:
async def rotate(self, *, force: str | None = None) -> list[Conversation]:
rotation = self.scheduler.rotation
return await rotation.tick() if rotation is not None else []
return await rotation.tick(force=force) if rotation is not None else []
def background(self, coro: Coroutine[Any, Any, Any]) -> None:
self.scheduler.background(coro)