radical.asyncflow.backends.execution.concurrent¶
ConcurrentExecutionBackend ¶
ConcurrentExecutionBackend(executor: Union[ThreadPoolExecutor, ProcessPoolExecutor])
Bases: BaseExecutionBackend
Simple async-only concurrent execution backend.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
13 14 15 16 17 18 19 20 21 |
|
__await__ ¶
__await__()
Make backend awaitable.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
23 24 25 |
|
submit_tasks async
¶
submit_tasks(tasks: List[Dict[str, Any]]) -> List[Task]
Submit tasks for execution.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
118 119 120 121 122 123 124 125 126 127 128 129 |
|
cancel_task async
¶
cancel_task(uid: str) -> bool
Cancel a task by its UID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uid | str | The UID of the task to cancel. | required |
Returns:
Name | Type | Description |
---|---|---|
bool | bool | True if the task was found and cancellation was attempted, False otherwise. |
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
cancel_all_tasks async
¶
cancel_all_tasks() -> int
Cancel all running tasks.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
148 149 150 151 152 153 154 155 156 |
|
shutdown async
¶
shutdown() -> None
Shutdown the executor.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
158 159 160 161 162 |
|
__aenter__ async
¶
__aenter__()
Async context manager entry.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
179 180 181 182 183 |
|
__aexit__ async
¶
__aexit__(exc_type, exc_val, exc_tb)
Async context manager exit.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
185 186 187 |
|
create async
classmethod
¶
create(executor: Union[ThreadPoolExecutor, ProcessPoolExecutor])
Factory method for creating initialized backend.
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/backends/execution/concurrent.py
189 190 191 192 193 |
|