mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 02:28:18 -05:00
Merge pull request #4103 from penpot/niwinz-staging-bugfix-12
💄 Minor cosmetic changes
This commit is contained in:
commit
a31fbabc10
3 changed files with 8 additions and 5 deletions
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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?))
|
||||
|
|
Loading…
Add table
Reference in a new issue