Class: Sidekiq::IterableJobQuery::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/sidekiq/api.rb

Instance Method Summary collapse

Instance Method Details

#cancelledObject



1459
1460
1461
# File 'lib/sidekiq/api.rb', line 1459

def cancelled
  raw["cancelled"]&.to_i
end

#cursorObject



1451
1452
1453
1454
1455
1456
1457
# File 'lib/sidekiq/api.rb', line 1451

def cursor
  @cursor ||= begin
    Sidekiq.load_json(raw["c"])
  rescue JSON::ParserError
    @raw["c"]
  end
end

#executionsObject



1443
1444
1445
# File 'lib/sidekiq/api.rb', line 1443

def executions
  raw["ex"].to_i
end

#runtimeObject



1447
1448
1449
# File 'lib/sidekiq/api.rb', line 1447

def runtime
  raw["rt"].to_f
end