feat(conversations,jobs): a manual run of the rotation job rotates the master now
This commit is contained in:
1 parent
7b36cb2156
commit
8f26263d4a
3 files changed
+25
-4
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user