summaryrefslogtreecommitdiff
path: root/.trash/Persistence.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-01-19 21:14:51 +0100
committerJasper Ras <jras@hostnet.nl>2025-01-19 21:14:51 +0100
commit9642cd7ae24f0ba79ce5647c709b35ae8f06a285 (patch)
treeae25c3b0db7ae4c23186b294c6d000073f085c2d /.trash/Persistence.md
parent969b96c2531fb986f6c7f21fd544391b439defd7 (diff)
vault backup: 2025-01-19 21:14:51
Diffstat (limited to '.trash/Persistence.md')
-rw-r--r--.trash/Persistence.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/.trash/Persistence.md b/.trash/Persistence.md
new file mode 100644
index 0000000..682b88e
--- /dev/null
+++ b/.trash/Persistence.md
@@ -0,0 +1,40 @@
+---
+tags:
+ - taskflow
+references:
+ - https://docs.openstack.org/taskflow/latest/user/persistence.html
+---
+Main interface is called Backend.
+
+**prep**
+Backend + (Logbook ->) Flow Detail -> Engine -> Storage
+
+**execution**
+inspect existing atom details -> find unfinished -> inspect graph -> run atoms
+
+**post exec**
+destroy logbook, clear backend
+can be configured to keep those things around for any purpose
+
+> Logbook is the authoritive source of run-time state. Logbook written first, then persisted.
+
+Namespace: `taskflow.persistence`.
+```
+from taskflow.persistence import backends
+
+...
+persistence = backends.fetch(conf={
+ "connection": "mysql",
+ "user": ...,
+ "password": ...,
+})
+
+logbookj
+```
+
+Types:
+- memory (connection: memoery)
+- files (connection: dir | file)
+ - https://docs.openstack.org/taskflow/latest/user/persistence.html#id5
+- sqlalchemy (connection: mysql | postgres | sqlite)
+- zookeper (connection: zookeeper) \ No newline at end of file