Class: Sidekiq::IterableJobQuery::State
- Inherits:
-
Struct
- Object
- Struct
- Sidekiq::IterableJobQuery::State
- Defined in:
- lib/sidekiq/api.rb
Instance Method Summary collapse
Instance Method Details
#cancelled ⇒ Object
1459 1460 1461 |
# File 'lib/sidekiq/api.rb', line 1459 def cancelled raw["cancelled"]&.to_i end |
#cursor ⇒ Object
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 |
#executions ⇒ Object
1443 1444 1445 |
# File 'lib/sidekiq/api.rb', line 1443 def executions raw["ex"].to_i end |
#runtime ⇒ Object
1447 1448 1449 |
# File 'lib/sidekiq/api.rb', line 1447 def runtime raw["rt"].to_f end |