Skip to content

Commit

Permalink
Update executors1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Oct 6, 2023
1 parent e739336 commit d2ffaf7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/user/wflow_engine/executors1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ In the previous examples, we have been running calculations on our local machine

If you want to use the same executor for all the jobs in a workflow, you can pass the `executor` keyword argument to the `#!Python @flow` decorator.

!!! Warning

Until [Issue 1024](https://github.com/Quantum-Accelerators/quacc/issues/1024) is resolved, you will also need to directly set the `workflow_executor` keyword argument in the `#!Python @flow` decorator to the same value as that used for `executor` otherwise a post-processing error will occur.

```python
import covalent as ct
from ase.build import bulk
from quacc import flow
from quacc.recipes.emt.core import relax_job, static_job


@flow(executor="local") # (1)!
@flow(executor="local", workflow_executor="local") # (1)!
def workflow(atoms):
result1 = relax_job(atoms)
result2 = static_job(result1)
Expand All @@ -35,7 +31,7 @@ In the previous examples, we have been running calculations on our local machine
print(result)
```

1. This was merely for demonstration purposes. There is never really a need to use the "local" executor since the "dask" executor runs locally and is faster.
1. This was merely for demonstration purposes. There is never really a need to use the "local" executor since the "dask" executor runs locally and is faster. Also, until [Issue 1024](https://github.com/Quantum-Accelerators/quacc/issues/1024) is resolved, you will also need to directly set the `workflow_executor` keyword argument in the `#!Python @flow` decorator to the same value as that used for `executor` otherwise a post-processing error will occur.

**Setting Executors for Individual Jobs**

Expand Down

0 comments on commit d2ffaf7

Please sign in to comment.