From 9642cd7ae24f0ba79ce5647c709b35ae8f06a285 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sun, 19 Jan 2025 21:14:51 +0100 Subject: vault backup: 2025-01-19 21:14:51 --- .trash/Resumable.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .trash/Resumable.md (limited to '.trash/Resumable.md') diff --git a/.trash/Resumable.md b/.trash/Resumable.md new file mode 100644 index 0000000..1a36ef0 --- /dev/null +++ b/.trash/Resumable.md @@ -0,0 +1,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. + -- cgit v1.2.3