Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

534 B
Raw Blame
(ns metabase-enterprise.replacement.protocols
  (:require
   [potemkin.types :as p.types]))

(set! *warn-on-reflection* true)

(p.types/defprotocol+ IRunnerProgress
  (set-total! [this total]
    "Set the total number of items to process (across all phases). Called once.")
  (advance! [this] [this n]
    "Mark n items complete (default 1). Writes progress to DB periodically.")
  (canceled? [this]
    "Returns true if cancellation has been requested.")
  (start-run! [this])
  (succeed-run! [this])
  (fail-run! [this throwable]))