Skip to content

WISH: Muffle warning on 'In mccollect(jobs = jobs, wait = TRUE) : # 1 parallel job did not deliver a result' when multicore worker crashes #425

Closed

Description

@HenrikBengtsson

If a forked child process crashes/terminates, calling result() on the corresponding multicore future, directly or indirectly, will trigger a warning that comes from the parallel package:

library(future)
plan(multicore, workers = 2L)
f <- future(quit("no"))
r <- tryCatch(result(f), error = identity)
# Warning message:
# In mccollect(jobs = jobs, wait = TRUE) :
#   1 parallel job did not deliver a result
print(r)
# <FutureError: Failed to retrieve the result of MulticoreFuture (<none>) from the
# forked worker (on localhost; PID 21926). Post-mortem diagnostic: No process 
# exists with this PID, i.e. the forked localhost worker is no longer alive.>

Action

Have result() for MulticoreFuture muffle this warning.

Activity

  1. added this to the Next release milestone on Oct 14, 2020
  2. added
    Backend API
    on Oct 14, 2020
  3. HenrikBengtsson commented on Oct 16, 2020

    @HenrikBengtsson
    CollaboratorAuthor

    While thinking about it, unless we capture and relay the information in this warning, maybe it's better to let the warning stay? It'll add information when it comes to troubleshooting - and then warning only occurs when there's a serious problem so it's a rare event.

  4. removed this from the Next release milestone on Oct 17, 2020
  5. added this to the Next release milestone on Mar 21, 2025
  6. HenrikBengtsson commented on Mar 21, 2025

    @HenrikBengtsson
    CollaboratorAuthor

    While thinking about it, unless we capture and relay the information in this warning, maybe it's better to let the warning stay?

    I decided to keep the warning as is, because it is informative when it comes to troubleshooting, even future does a much better work these days on producing informative post-mortem error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend APIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions