-
Notifications
You must be signed in to change notification settings - Fork 0
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
API: Specifying required and preferred resources / tags #2
Comments
Grammar of ResourcesExamplesresources = ~ rng & { localhost | (file("./.Rprofile"):wr:optional & folder(".future"):wr) & globals(a , b) })
If the requirements cannot be met, a FutureError will be produced by
|
Resources can be (i) required, or (ii) optional. Among optional/preferred ones, we might have different preferences, but that might be overkill. |
Dynamic specifications:
|
|
|
UPDATE: hello <- function() {
model <- y ~ x + 1
message("Hello world!")
invisible(model)
} |
Edit 2021-01-23: can we incorporate the current list syntax into the new one, e.g.
This will allow us to use both styles
|
Examples: <resource>:
localhost
fork
<type>:<resource>:
host:localhost
parallelization:fork
parallelization:(!fork)
parallelization:!fork
memory:2.5*GiB
file:"~/abc.csv"
file:("~/abc.csv":r)
file:("~/abc.csv":w)
file:("~/abc.csv":rw)
batchtools:list(mem="5gb")
package:xgboost
package:(xgboost >= 1.2)
<type>:<resource>:<modifier>:
file:"~/abc.csv":preferred
batchtools:list(mem="5gb"):preferred |
A capability is single thing that both designates a resource and authorizes some kind of access to it. |
|
Add mechanism for specifying required and preferred resources / tags, e.g.
See also
The text was updated successfully, but these errors were encountered: