Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add workflow restart step
  • Loading branch information
clayton committed Sep 28, 2017
1 parent 3229371 commit 8e76c5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -15,7 +15,7 @@
[datascript "0.15.5"]
[de.mpg.shh/util-properties "0.0.1"]
[de.mpg.shh/util-message-server "0.0.15"]
[de.mpg.shh/util-overseer "0.0.54"]]
[de.mpg.shh/util-overseer "0.0.67"]]
:main overseer.core
:source-paths ["src/main/clojure"]
:profiles {:profiles {:uberjar {:aot :all}
Expand Down
Expand Up @@ -47,4 +47,7 @@
:workflow-clear-all
(fn [request-channel {data :data :as message}]
(receive conn-overseer :workflow-clear-all data))
:workflow-restart-from-step
(fn [request-channel {data :data :as message}]
(receive conn-overseer :workflow-restart-from-step data))
})))
Expand Up @@ -35,12 +35,12 @@
(error "error session endpoint received: " message))
:ping
(fn [request-channel message]
(info "got ping: " message)
;;(info "got ping: " message)
(reply request-channel (:client-id message) [:pong {}]))
;; Overseer client api calls, e.g. registering a runtime or accepting a task
:status
(fn [request-channel message]
(let [_ (info "got status: " (pr-str message))
(let [;;_ (info "got status: " (pr-str message))
result (try
{:data (overseer-server/status conn-overseer)}
(catch Throwable t
Expand Down

0 comments on commit 8e76c5d

Please sign in to comment.