SIENTIAPDE-1141
feat: add asynchronous sleep in temporal_manager to improve schedule processing
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from asyncio import sleep
|
||||
from temporalio import activity, workflow
|
||||
from temporalio.client import (
|
||||
Client, Schedule, ScheduleActionStartWorkflow, ScheduleIntervalSpec, ScheduleSpec, ScheduleUpdate, ScheduleUpdateInput)
|
||||
@@ -77,6 +78,8 @@ class TemporalManager(BaseActivity):
|
||||
'data': json.loads(data),
|
||||
}
|
||||
|
||||
await sleep(0.075)
|
||||
|
||||
self.logger.info("Found %d orchestrated schedules",
|
||||
len(orchestrated_schedules))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user