radical.asyncflow.backends.execution.concurrent¶
ConcurrentExecutionBackend ¶
ConcurrentExecutionBackend(executor: Executor)
Bases: BaseExecutionBackend
Simple async-only concurrent execution backend.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
__await__ ¶
__await__()
Make backend awaitable.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
39 40 41 | |
submit_tasks async ¶
submit_tasks(tasks: list[dict[str, Any]]) -> list[Task]
Submit tasks for execution.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
157 158 159 160 161 162 163 164 165 166 167 168 | |
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.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |
cancel_all_tasks async ¶
cancel_all_tasks() -> int
Cancel all running tasks.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
188 189 190 191 192 193 194 195 196 | |
shutdown async ¶
shutdown() -> None
Shutdown the executor.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
198 199 200 201 202 | |
__aenter__ async ¶
__aenter__()
Async context manager entry.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
221 222 223 224 225 | |
__aexit__ async ¶
__aexit__(exc_type, exc_val, exc_tb)
Async context manager exit.
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
227 228 229 | |
create async classmethod ¶
create(executor: Executor)
Alternative factory method for creating initialized backend.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
executor | Executor | A concurrent.Executor instance (ThreadPoolExecutor or ProcessPoolExecutor). | required |
Returns:
| Type | Description |
|---|---|
| Fully initialized ConcurrentExecutionBackend instance. |
Source code in doc_env/lib/python3.14/site-packages/radical/asyncflow/backends/execution/concurrent.py
231 232 233 234 235 236 237 238 239 240 241 242 243 | |