parallel task/function on the same host
See original GitHub issueHi
with Fabric v1.14
If I want to have parallel execution of a function on the same/single host, is that possible to use @parallel
?
I already tested these two options:
- if I use threading option, the shared
env
variable can be written by different threads - if I use pool option, it will stuck on the
run
command , however,local
works fine
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Task parallelism
Task parallelism is a form of parallelization of computer code across multiple processors in parallel computing environments. Task parallelism focuses on ...
Read more >azure functions - How many parallel tasks can do with ...
If the FUNCTIONS WORKER PROCESS COUNT is set to 10, each host instance will perform 10 individual functions at the same time.
Read more >Tasks and Parallelism: The New Wave of Multithreading
Parallel programming covers a wider spectrum and refers to the ability to have multiple tasks going on concurrently. Concurrent does not ...
Read more >Task-based asynchronous programming - .NET
The term task parallelism refers to one or more independent tasks running concurrently. Tasks provide two primary benefits:.
Read more >Parallel execution
This document describes Fabric's options for running tasks on multiple hosts in parallel, via per-task decorators and/or global command-line switches. What it ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Without wanting to be rude or mean, I think everything you’re wanting to do is taken care of in the documentation. If there is an issue you’d like to raise, please feel free re-open this ticket.
Cheers, David
Hi @davidjmemmett
just one more question, due to some develop limitation, I can not use other external library is there any version of Fabric support multi-process execution of
run
command, i.e., assume you haveand then you assign this function to process worker in
multiprocessing.pool
everything works well, until we reach to
fabric.run
command and code hangs there in all concurrent process