mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
Remove alembic errors dumped into logs by cron jobs (#12900)
This commit is contained in:
@@ -2,10 +2,13 @@ import asyncio
|
||||
|
||||
from storage.proactive_conversation_store import ProactiveConversationStore
|
||||
|
||||
from openhands.core.logger import openhands_logger
|
||||
|
||||
OLDER_THAN = 30 # 30 minutes
|
||||
|
||||
|
||||
async def main():
|
||||
openhands_logger.info('clean_proactive_convo_table')
|
||||
convo_store = ProactiveConversationStore()
|
||||
await convo_store.clean_old_convos(older_than_minutes=OLDER_THAN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user