-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Labels
Description
Prework
- Read and agree to the code of conduct and contributing guidelines.
- If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
- New features take time and effort to create, and they take even more effort to maintain. So if the purpose of the feature is to resolve a struggle you are encountering personally, please consider first posting a "trouble" or "other" issue so we can discuss your use case and search for existing solutions first.
- Format your code according to the tidyverse style guide.
Proposal
- Record the host and PID of the
callrprocess that runs the pipeline. Store that info in_targets/meta/process. - Support a new
tar_process()function to retrieve this info. For Compatibility with Shiny #291, let's also throw intar_pid()just to get the PID. - If a new process tries to run the pipeline and the old process is still alive, throw an informative error recommending to terminate the original pipeline or wait until it finishes.
(3) is not perfect, but it is good enough for #291. Following @mattwarkentin's idea from #273, we might even add a little note in tar_watch() because we can be honest that we may not necessarily be able to check if the main process is alive.
mattwarkentin