GithubHelp home page GithubHelp logo

Comments (3)

sunng87 avatar sunng87 commented on August 20, 2024

This should be caused by breaking changes introduced in failsafe 3.3, which replaces some Duration API with Instant. Can you show me some code so we can see which variable has the type change in this case (it's likely to be *start-time-ms*)

from diehard.

daaku avatar daaku commented on August 20, 2024

This is the relevant code:

(defn- deploy-and-email [release {:keys [retry-delay-ms send-email port-current]
                                  :as opts}]
  (try
    (with-retry
      {:retry-on IllegalArgumentException
       :delay-ms retry-delay-ms
       :max-retries 3
       :on-retry
       (fn [_result ex]
         (m/inc m-deploy-retry)
         (when-not (str/includes? (str ex) "Host URL cannot be nil")
           (send-email (str "Retry Deploy " release)
                       [:pre (with-out-str (print-stack-trace ex))])))}
      (deploy-release release opts))
    (m/inc m-deploy-success)
    (send-email (str "Deployed " release) (release-email release opts))
    (stop-target port-current opts)
    (catch Throwable t
      (m/inc m-deploy-fail)
      (send-email (str "Failed Deploy " release)
                  [:pre (with-out-str (print-stack-trace t))]))))

from diehard.

sunng87 avatar sunng87 commented on August 20, 2024

This is weird. It should be *start-time-ms* that being cast to Duration. Have you tried a lein clean for this case?

from diehard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.