-
Notifications
You must be signed in to change notification settings - Fork 28
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
wf_request_batch()
with transfer=FALSE
#103
Comments
Yes, you're correct. Right now |
My ideal code would look something like:
instead of
But maybe this is quite a specific need that nobody else share... |
So you're requesting all the requests at once and then downloading when they are done? The added value of For your usecase I'd use @khufkens what do you think? |
Correct, assuming that you don't exceed the maximum number of allowed parallel requests. The recent work of @eliocamp explicitly addresses the latter, monitoring the queue to download and submit new requests as slots free up. So as long as you colour within the lines the proposed fix (above) should work. |
Ok, thanks for your answers. In my case I could have up to 100+ requests to make (of very small files). This is only done once in the overall process of my code. So, my thinking would be to make all requests at once and wait a couple of hours and then download them all. |
Just submit it as a job! Either in a separate terminal (if you are using no IDE, or using the job interface in RStudio). I mostly let jobs like this run in the background in RStudio, or when using an HPC they run as proper job in the HPC queue. But yes, best to download everything in one pass if you don't need dynamic access |
For reference: |
Ok, yes, sounds like a good plan. I'm not super familiar with jobs. But for my case, would you be using the job_name in |
That's effectively the same thing. I often call things from within RStudio itself as I often lump in some post/pre-processing. |
Bear in mind that |
Sounds good. Maybe I'll keep |
Ok, I'll close this now. btw. @Rafnuss nice work with the pressure based geolocation work. |
Is is possible to have batch request without transfer?
The documentation for
wf_request()
andwf_request_batch()
reads:But as I understand it,
wf_request_batch()
doesn't have an option to just stage the request. Is this correct? Or am I missing something?The text was updated successfully, but these errors were encountered: