clojure-control icon indicating copy to clipboard operation
clojure-control copied to clipboard

Run a local task once?

Open andyparsons opened this issue 10 years ago • 4 comments

I have a build task that is part of an overall deploy task. The idea is the build task (compilation, uberjar) should occur once per deploy, and the remainder of the tasks run once per deployment (scp, restarting, etc.)

Currently the local build task runs once per node in the cluster. How would one ensure this runs only once for a deployment?

andyparsons avatar May 17 '15 17:05 andyparsons

Yep, it's a problem here. Maybe i can supports once metadata for tasks.And it make sure that the task attached with once metadata will only run at most once for one task execution.

killme2008 avatar May 18 '15 02:05 killme2008

That would be absolutely ideal!

andyparsons avatar May 18 '15 02:05 andyparsons

Nicely done- thanks for adding this!

andyparsons avatar Jun 25 '15 22:06 andyparsons

My pleasure. I will release a new version ASAP.

2015-06-26 6:22 GMT+08:00 Andy S. Parsons [email protected]:

Nicely done- thanks for adding this!

— Reply to this email directly or view it on GitHub https://github.com/killme2008/clojure-control/issues/22#issuecomment-115417961 .

庄晓丹 Email: [email protected] [email protected] Site: http://fnil.net Twitter: @killme2008

killme2008 avatar Jun 26 '15 00:06 killme2008