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

Using HTcondor with future.batchtools #29

Open
yonicd opened this issue Aug 8, 2018 · 8 comments
Open

Using HTcondor with future.batchtools #29

yonicd opened this issue Aug 8, 2018 · 8 comments

Comments

@yonicd
Copy link

yonicd commented Aug 8, 2018

can one of the backends (batchtools_*) be used to send jobs to HTCondor? or would it need to be done with a batchtools_custom?

@HenrikBengtsson
Copy link
Collaborator

HenrikBengtsson commented Aug 9, 2018

I don't think so, but I also know nothing about HTCondor - you probably have to roll your own custom config setup.

There's an open issue over at batchtools for adding built-in support for HTCondor (mllg/batchtools#68). The best would be to get it implemented there first. Then it'll be straightforward to include a corresponding future.batchtools backend.

@yonicd
Copy link
Author

yonicd commented Aug 9, 2018

is there an example of an implementation of batchtools_custom?

@HenrikBengtsson
Copy link
Collaborator

It's used to with "cluster functions" (a batchtools concept), e.g.

cf <- batchtools::makeClusterFunctionsInteractive(external = TRUE)
plan(batchtools_custom, cluster.workers = cf)

## Create explicit future
f <- future({
  cat("PID:", Sys.getpid(), "\n")
  42L
})
v <- value(f)
print(v)

(I've added this to example("batchtools_custom") for the next release)

So, to if you can create proper batchtools cluster functions for HTCondor, then you can use the above.

@scottkosty
Copy link

@yonicd were you able to figure out how to use batchtools with HTCondor (and then with the future package) in the end? I am working with someone who uses HTCondor and would love to be able to use future.

@yonicd
Copy link
Author

yonicd commented Feb 29, 2024

I have not used Condor for a while now (un)fortunately, sorry

@scottkosty
Copy link

I have not used Condor for a while now (un)fortunately, sorry

No worries, thanks a lot for the reply!

@yonicd
Copy link
Author

yonicd commented Feb 29, 2024

This isn’t future based, but worked well enough with the condor hpc cluster https://github.com/yuliasidi/condor

@scottkosty
Copy link

Thank you! I am set on using future, but if someday I have the time to jump down the rabbit hole that might be helpful for figuring out a patch to batchtools.

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

3 participants