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
1460 1461 1462 |
# File 'lib/sidekiq/api.rb', line 1460 def cancelled raw["cancelled"]&.to_i end |
#cursor ⇒ Object
1452 1453 1454 1455 1456 1457 1458 |
# File 'lib/sidekiq/api.rb', line 1452 def cursor @cursor ||= begin Sidekiq.load_json(raw["c"]) rescue JSON::ParserError raw["c"] end end |
#executions ⇒ Object
1444 1445 1446 |
# File 'lib/sidekiq/api.rb', line 1444 def executions raw["ex"].to_i end |
#runtime ⇒ Object
1448 1449 1450 |
# File 'lib/sidekiq/api.rb', line 1448 def runtime raw["rt"].to_f end |