Is there a way to make sure, Parallelizable / Coll...
# hamilton-help
v
Is there a way to make sure, Parallelizable / Collect is NOT run in parallel, but consecutively, in yielded order?
e
Yep! You can use the SynchronousLocalTaskExecutor to run it
❤️ 1
👍 1
Image from iOS.jpg
Sorry for the screen cap on my phone
But basically you set the “remote” executor (which means anything between a parallel and collect) to be the local one
This is assuming you want to run locally — if not executors have concurrency maximums that you can set
v
Beautiful. I'll be using it for partitioning a download by date. I'm seeing it in use here, too — but the local executor bit was missing there. Thank you for pointing this out. https://hamilton.dagworks.io/en/latest/concepts/builder/#enable-dynamic-execution
e
Makes sense! Easy way to do a map-style operation. And yeah, we can probably make the docs a bit clearer as to what “remote” and “local” mean for executors, it’s a bit confusing
👍 1
v
true, it's not clear, what would be exectured remotely, and that makes it sound like the remote executor would be used only where a "remote execution" mode is declared for a part of the dag.
e
Yep, we can fix up the docs