Skip to content

Commit

Permalink
try local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Nov 14, 2024
1 parent 5a4d29c commit 25796d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/crew_worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ crew_worker <- function(
instance,
options_metrics = crew::crew_options_metrics()
) {
installed_autometric <- rlang::is_installed(
pkg = "autometric",
version = "0.1.0"
)
if (installed_autometric && !is.null(options_metrics$path)) {
pids <- Sys.getpid()
names(pids) <- sprintf("crew_worker_%s_%s_%s", launcher, worker, instance)
Expand Down

0 comments on commit 25796d2

Please sign in to comment.