Skip to content

Commit

Permalink
add msg id NULL check for normal ops
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Jun 30, 2020
1 parent cc49c3f commit c2963ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# 0.8.10
# 0.8.95

* We are now using _ZeroMQ_ via `Rcpp` in preparation for `v0.9` (#151)
* New `multiprocess` backend via `callr` instead of forking (#142, #197) FIXME: test case
* Sending data on sockets is now blocking to avoid excess memory usage (#161)
* `multicore`, `multiprocess` schedulers now support logging (#169)
* New option `clustermq.host` can specify host IP or network interface name (#170)
* Template filling will now raise error for missing keys (#174, #198)
* Workers failing with large common data is improved (fixed?) (#146, #179, #191)
* Local connections are now routed via `127.0.0.1` instead of `localhost` (#192)
* Submit messages are different between local, multicore and HPC (#196)
* Functions exported by `foreach` now have their environment stripped (#200)
Expand Down
5 changes: 5 additions & 0 deletions R/worker.r
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ worker = function(master, timeout=getOption("clustermq.worker.timeout", 600),
if (events[1]) {
tic = proc.time()
msg = zmq$receive()
if (is.null(msg$id)) {
# more information if #146, #179, #191 happen again
message("msg: ", msg)
next
}
delta = proc.time() - tic
message(sprintf("> %s (%.3fs wait)", msg$id, delta[3]))
} else
Expand Down

0 comments on commit c2963ad

Please sign in to comment.