Sha256: c641cd76a26696c920ae7e10d22eda07bd3d502f47a46b6c7c6d783e86247574

Contents?: true

Size: 504 Bytes

Versions: 8

Compression:

Stored size: 504 Bytes

Contents

class ProconBypassMan::PostCompletedRemoteActionJob < ProconBypassMan::BaseJob
  extend ProconBypassMan::HasExternalApiSetting

  # @param [Symbol] status
  def self.perform(job_id)
    ProconBypassMan::RemoteMacroHttpClient.new(
      path: path,
      server: api_server,
    ).post(job_id: job_id)
  end

  def self.path
    device_id = ProconBypassMan.device_id
    "/api/devices/#{ProconBypassMan.device_id}/completed_pbm_remote_macro_jobs"
  end

  def self.re_enqueue_if_failed
    true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/background/jobs/post_completed_remote_action_job.rb