Skip to content

Promises and backlogged task management for {targets}

Compare
Choose a tag to compare
@wlandau wlandau released this 07 Feb 13:39
· 277 commits to main since this release
3c8f77d

crew 0.9.0

  • Require nanonext >= 0.12.0 and mirai >= 0.12.0.
  • Return to always re-launching backlogged inactive workers (#79, shikokuchuo/mirai#95).
  • Implement push_backlog() and pop_backlog() to manage cases when it is not desirable to push to saturated controllers (ropensci/targets#1220).
  • Invisibly return the mirai object of a task pushed to the controller. This allows users to interact with the task directly, e.g. to create a promise object with promises::as.promise() (#146, @jcheng5).
  • Add a new walk() method for controllers and controller groups to submit tasks in batch and return control immediately without waiting for any task to complete (#148, @jcheng5).
  • Revive the collect() method for popping multiple tasks at once (#148, @jcheng5).
  • Add controller group methods nonempty(), resolved(), unresolved(), and unpopped() to help with #148.
  • Make the mirai dispatcher error message extremely verbose.