blob: 1a36ef009a36e4cf9fc91a615c334e8a7eac17ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
tags:
- taskflow
references:
- https://docs.openstack.org/taskflow/latest/user/resumption.html
- https://opendev.org/openstack/taskflow/src/branch/master//taskflow/examples/resume_from_backend.py
---
[Example](https://opendev.org/openstack/taskflow/src/branch/master//taskflow/examples/resume_from_backend.py)
A flow can be resumed by reconstructing the links between atoms. This is done by a factory function that has to be importable. Instead of passing a flow to the run function, we need to pass the factorkkky function to the load-from-factory function which will call the factory to create the flow and passes it to the engine.
Atom names should be unique in a flow so that when resuming it the corresponding flow detail can be matched.
|