mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 15:38:29 +02:00
✨ Allow disable worker
This commit is contained in:
parent
95bb3f31af
commit
7fa609d5f4
6 changed files with 56 additions and 59 deletions
|
@ -51,6 +51,7 @@
|
|||
(defn state-init
|
||||
[next]
|
||||
(let [config (-> main/system-config
|
||||
(merge main/worker-config)
|
||||
(assoc-in [:app.msgbus/msgbus :redis-uri] (:redis-uri config))
|
||||
(assoc-in [:app.db/pool :uri] (:database-uri config))
|
||||
(assoc-in [:app.db/pool :username] (:database-username config))
|
||||
|
@ -75,9 +76,7 @@
|
|||
:app.loggers.database/reporter
|
||||
:app.loggers.zmq/receiver
|
||||
:app.worker/cron
|
||||
:app.worker/worker)
|
||||
(d/deep-merge
|
||||
{:app.tasks.file-gc/handler {:max-age (dt/duration 300)}}))
|
||||
:app.worker/worker))
|
||||
_ (ig/load-namespaces config)
|
||||
system (-> (ig/prep config)
|
||||
(ig/init))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue