summary refs log tree commit diff
path: root/synapse/util/task_scheduler.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-08-23 13:46:10 +0100
committerErik Johnston <erik@matrix.org>2023-08-23 13:46:10 +0100
commitb7d0c7d3fd5caaf24efa63dc20efb74ad640c0a6 (patch)
tree214fdb142593f642eb20ea0ba145c687b3638bed /synapse/util/task_scheduler.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentFix rare deadlock when using read/write locks (#16133) (diff)
downloadsynapse-b7d0c7d3fd5caaf24efa63dc20efb74ad640c0a6.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/util/task_scheduler.py')
-rw-r--r--synapse/util/task_scheduler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/util/task_scheduler.py b/synapse/util/task_scheduler.py

index 773a8327f6..4aea64b338 100644 --- a/synapse/util/task_scheduler.py +++ b/synapse/util/task_scheduler.py
@@ -154,13 +154,15 @@ class TaskScheduler: f"No function associated with action {action} of the scheduled task" ) + status = TaskStatus.SCHEDULED if timestamp is None or timestamp < self._clock.time_msec(): timestamp = self._clock.time_msec() + status = TaskStatus.ACTIVE task = ScheduledTask( random_string(16), action, - TaskStatus.SCHEDULED, + status, timestamp, resource_id, params,