summary refs log tree commit diff
path: root/synapse/storage/databases
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2023-08-23 13:37:51 +0200
committerGitHub <noreply@github.com>2023-08-23 13:37:51 +0200
commit873971a8b9b4cbbc141df570e76a02c7b4b9b9c0 (patch)
tree665bf300daabae67631965be93b9c4b66cdea5b9 /synapse/storage/databases
parentAdd tests for restoring the presence state after a restart. (#16151) (diff)
downloadsynapse-873971a8b9b4cbbc141df570e76a02c7b4b9b9c0.tar.xz
Task scheduler: mark task as active if we are scheduling ASAP (#16165)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r--synapse/storage/databases/main/task_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/task_scheduler.py b/synapse/storage/databases/main/task_scheduler.py
index 1fb3180c3c..9ab120eea9 100644
--- a/synapse/storage/databases/main/task_scheduler.py
+++ b/synapse/storage/databases/main/task_scheduler.py
@@ -92,7 +92,7 @@ class TaskSchedulerWorkerStore(SQLBaseStore):
             if clauses:
                 sql = sql + " WHERE " + " AND ".join(clauses)
 
-            sql = sql + "ORDER BY timestamp"
+            sql = sql + " ORDER BY timestamp"
 
             txn.execute(sql, args)
             return self.db_pool.cursor_to_dict(txn)