Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make rebuilds dynamic targets even when some subtargets get built before an interrupt #1211

Closed
kendonB opened this issue Mar 10, 2020 · 1 comment

Comments

@kendonB
Copy link
Contributor

kendonB commented Mar 10, 2020

library(drake)
my_plan <- drake_plan(
  i = 1:10,
  mytarget = target({
    Sys.sleep(10)
    i
  }, dynamic = map(i))
)
make(my_plan,
     verbose = 1)
##> dynamic mytarget
##> subtarget mytarget_0b3474bd
##> subtarget mytarget_b2a5c9b8
##> subtarget mytarget_71f311ad
##> ### INTERRUPT HERE ###
make(my_plan,
     verbose = 1)
##> dynamic mytarget
##> subtarget mytarget_0b3474bd
##> subtarget mytarget_b2a5c9b8
##> subtarget mytarget_71f311ad

Created on 2020-03-11 but not by the reprex package (v0.3.0)
I presume that as a dynamic target builds itself it is storing files - seems like make should record the subtargets as up-to-date in this case. Is that possible?

@kendonB
Copy link
Contributor Author

kendonB commented Mar 10, 2020

duplicate of #1209?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant