Sha256: 19297b6b1ddcea7c7582dbe8aee6103611cb559902bbc5738774b794f1705a5f

Contents?: true

Size: 697 Bytes

Versions: 7

Compression:

Stored size: 697 Bytes

Contents

module Qwirk
  module Batch
    module JobStatus

      # Note: String max is set to 8 as defined in the schema.rb file

      # Job has been acquired but is not yet running
      INITED   = 'Inited'

      # Job is currently running
      RUNNING  = 'Running'

      # Job has paused because the worker has been commanded to stop
      PAUSED  = 'Paused'

      # A client has canceled the job
      CANCELED = 'Canceled'

      # The job has been aborted due to threshold constraints (too many record failures)
      ABORTED  = 'Aborted'

      # The job has finished
      FINISHED = 'Finished'

      STATUSES = [INITED, RUNNING, PAUSED, CANCELED, ABORTED, FINISHED].freeze

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qwirk-0.2.4 lib/qwirk/batch/job_status.rb
qwirk-0.2.3 lib/qwirk/batch/job_status.rb
qwirk-0.2.2 lib/qwirk/batch/job_status.rb
qwirk-0.2.1 lib/qwirk/batch/job_status.rb
qwirk-0.2.0 lib/qwirk/batch/job_status.rb
qwirk-0.1.0 lib/qwirk/batch/job_status.rb
qwirk-0.0.1 lib/qwirk/batch/job_status.rb