Skip to content

Commit

Permalink
Change scheduled tasks' request time (#885)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth authored Jan 22, 2024
1 parent 0d7701e commit 3641034
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async def schedule_task(task: ttm.ScheduledTask, task_repo: TaskRepository):
)

async def run():
req.request.unix_millis_request_time = round(datetime.now().timestamp() * 1e3)
await post_dispatch_task(req, task_repo)
task.last_ran = datetime.now()
await task.save()
Expand Down

0 comments on commit 3641034

Please sign in to comment.