clip icon indicating copy to clipboard operation
clip copied to clipboard

:start-after

Open awb99 opened this issue 2 years ago • 1 comments

I have defined several services in my clip/aero system: [:config :start-logger :service-1 :service-2] :logger depends on :config. :service-1 and :service-2 depend also on :config.

Now I want to start :service-1 and :service-2 AFTER :logger is started. The reason is, that :start-logger sets up the loggers in a nice way (and sets up loglevels, etc).

Now I could solve this issue, by adding a reference to :logger in :service-1 and :service-2. But this means that I can not just call functions defined in any arbitrary namespace. Instead i have to write a wrapper that takes one argument that will be ignored (:logger) and then use the other arguments for the real function.

Thanks!

awb99 avatar May 03 '22 04:05 awb99

Possibly this is related to #8

SevereOverfl0w avatar May 03 '22 10:05 SevereOverfl0w