diff --git a/backend/src/app/loggers/audit.clj b/backend/src/app/loggers/audit.clj index e7a0184ac7..45c36334a7 100644 --- a/backend/src/app/loggers/audit.clj +++ b/backend/src/app/loggers/audit.clj @@ -347,7 +347,6 @@ (mark-as-archived [conn rows] (db/exec-one! conn ["update audit_log set archived_at=now() where id = ANY(?)" (->> (map :id rows) - (into-array java.util.UUID) (db/create-array conn "uuid"))]))] (db/with-atomic [conn pool] diff --git a/backend/src/app/rpc/climit.clj b/backend/src/app/rpc/climit.clj index 8d43a2cb5b..2b83d5c22a 100644 --- a/backend/src/app/rpc/climit.clj +++ b/backend/src/app/rpc/climit.clj @@ -45,7 +45,7 @@ [{:keys [::wrk/executor]}] (letfn [(on-remove [key _ cause] (let [[id skey] key] - (l/dbg :hint "disposed" :id (id->str id skey) :reason (str cause))))] + (l/trc :hint "disposed" :id (id->str id skey) :reason (str cause))))] (cache/create :executor executor :on-remove on-remove :keepalive "5m"))) @@ -86,7 +86,7 @@ (defn- create-limiter [config [id skey]] - (l/dbg :hint "created" :id (id->str id skey)) + (l/trc :hint "created" :id (id->str id skey)) (pbh/create :permits (or (:permits config) (:concurrency config)) :queue (or (:queue config) (:queue-size config)) :timeout (:timeout config) diff --git a/backend/src/app/worker.clj b/backend/src/app/worker.clj index 0e830ac9a3..3a6bfe897c 100644 --- a/backend/src/app/worker.clj +++ b/backend/src/app/worker.clj @@ -643,8 +643,12 @@ (def ^:private sql:remove-not-started-tasks - "delete from task - where name=? and queue=? and label=? and status = 'new' and scheduled_at > now()") + "DELETE FROM task + WHERE name=? + AND queue=? + AND label=? + AND status = 'new' + AND scheduled_at > now()") (s/def ::label string?) (s/def ::task (s/or :kw keyword? :str string?))