Skip to content

Commit

Permalink
fix: worker info with terminated workers
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Apr 16, 2024
1 parent 4708a40 commit 1f14a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Rush.R
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ Rush = R6::R6Class("Rush",
#' Contains information about the workers.
worker_info = function(rhs) {
assert_ro_binding(rhs)
if (!self$n_running_workers) return(data.table())
if (!self$n_workers) return(data.table())
r = self$connector

fields = c("worker_id", "pid", "host", "hostname", "heartbeat")
Expand Down

0 comments on commit 1f14a05

Please sign in to comment.