flowdeck 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flowdeck-0.2.1/.gitignore +31 -0
- flowdeck-0.2.1/LICENSE +293 -0
- flowdeck-0.2.1/PKG-INFO +228 -0
- flowdeck-0.2.1/README.md +189 -0
- flowdeck-0.2.1/pyproject.toml +76 -0
- flowdeck-0.2.1/src/flowdeck/__init__.py +65 -0
- flowdeck-0.2.1/src/flowdeck/_version.py +1 -0
- flowdeck-0.2.1/src/flowdeck/api/__init__.py +216 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/__init__.py +1 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/dashboard.py +73 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/health.py +26 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/notifications.py +92 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/pipelines.py +274 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/runs.py +227 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/schedule_exceptions.py +141 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/system.py +386 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/ui_pipelines.py +507 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/ui_task_tools.py +275 -0
- flowdeck-0.2.1/src/flowdeck/api/routers/webhooks.py +115 -0
- flowdeck-0.2.1/src/flowdeck/auth/__init__.py +0 -0
- flowdeck-0.2.1/src/flowdeck/auth/basic.py +65 -0
- flowdeck-0.2.1/src/flowdeck/cli.py +40 -0
- flowdeck-0.2.1/src/flowdeck/config.py +240 -0
- flowdeck-0.2.1/src/flowdeck/database/__init__.py +0 -0
- flowdeck-0.2.1/src/flowdeck/database/base.py +91 -0
- flowdeck-0.2.1/src/flowdeck/database/models.py +218 -0
- flowdeck-0.2.1/src/flowdeck/database/repository.py +1231 -0
- flowdeck-0.2.1/src/flowdeck/logger/__init__.py +122 -0
- flowdeck-0.2.1/src/flowdeck/logger/formatter.py +112 -0
- flowdeck-0.2.1/src/flowdeck/logger/web_socket_handler.py +85 -0
- flowdeck-0.2.1/src/flowdeck/notifications/__init__.py +13 -0
- flowdeck-0.2.1/src/flowdeck/notifications/email_sender.py +79 -0
- flowdeck-0.2.1/src/flowdeck/notifications/engine.py +412 -0
- flowdeck-0.2.1/src/flowdeck/notifications/rules.py +22 -0
- flowdeck-0.2.1/src/flowdeck/notifications/table_image.py +273 -0
- flowdeck-0.2.1/src/flowdeck/notifications/task_result.py +478 -0
- flowdeck-0.2.1/src/flowdeck/notifications/templates.py +224 -0
- flowdeck-0.2.1/src/flowdeck/orchestrator/__init__.py +380 -0
- flowdeck-0.2.1/src/flowdeck/orchestrator/executor.py +661 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/__init__.py +5 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/_utils.py +11 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/context.py +13 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/pipeline.py +40 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/schedule.py +125 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/task.py +104 -0
- flowdeck-0.2.1/src/flowdeck/pipeline/trigger.py +22 -0
- flowdeck-0.2.1/src/flowdeck/schemas.py +11 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/BackfillModal-BViyo-00.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/BackfillModal-D6je7CRx.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Btn-B77BQZvQ.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Btn-D6G_tsbF.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/DashboardView-BM-S5j64.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/DashboardView-CBu0kYw6.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/DatePickerField-IOKwxOwp.js +830 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Empty-B5kRTX_h.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Empty-ScitfHnD.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Modal-7xA4aZKG.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/Modal-BNFhtIvK.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NotificationsView-BTkWFeLt.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NotificationsView-BkofWdjj.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NotifySettings-BFdtzy6K.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NotifySettings-D9Nn2RLl.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NumInput--MSEekvd.js +582 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/NumInput-DfqPA-uG.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PageHeader-3D30Zbvm.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PageHeader-BULVGwbD.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PipelineDetailView-89815vAO.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PipelineDetailView-B_iVBCYT.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PipelinesView-CtDub3qu.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PipelinesView-DC9QO4Wr.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PrettyJson-DjAv38hk.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/PrettyJson-_gjY71Cb.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/RecentFailuresView-CruW_Dj8.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/RecentFailuresView-DjQsiRv9.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/RunDetailView--NojY8JX.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/RunDetailView-2ZVPmVgW.js +5 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/ScheduleExceptionsView-DdccyMcD.js +2 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/ScheduleExceptionsView-pWTB9mSE.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/SettingsView-BwlizulV.js +4 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/SettingsView-D4ybFG31.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatCard-CdPYF8jZ.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatCard-D06FdLL9.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatsView-88bkL-AN.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatsView-DONGQHCc.js +18 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatusBadge-BDBPRgRa.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/StatusBadge-DzUDQ0X_.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/ToggleSwitch-KMgLwPsM.js +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/ToggleSwitch-UNHeNS9K.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/UiPipelinesView-BgzBgUYR.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/UiPipelinesView-WTYqKxB5.js +2 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/UiTaskEditorView-BgYyqqgT.js +10 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/UiTaskEditorView-Dl6zmLDP.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/_plugin-vue_export-helper-OBKhRxFI.js +12 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-400-normal-D7EtbySE.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-400-normal-SafcrIr2.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-500-normal-BR1ody1F.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-500-normal-CnUQnZ4D.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-600-normal-DQKfcdKo.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-600-normal-DVQm9bgb.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-700-normal-CnDBPjkL.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-700-normal-D1s_c2du.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-400-normal-C8u6EFkq.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-400-normal-MNNNbyh_.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-500-normal-BCHeNDEx.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-500-normal-gA6791b0.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-600-normal-CdGvbdDU.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-600-normal-nL80L4xU.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-700-normal-BeviJPUl.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-latin-ext-700-normal-DAkvJhej.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-400-normal-Bw1Q-fVY.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-400-normal-KdzBjiWs.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-500-normal-CJG_V2_m.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-500-normal-DeexCGiz.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-600-normal-BiM5MXH8.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-600-normal-C620THcd.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-700-normal-B7WL5pBr.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-thai-700-normal-vZLZ_5L8.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-vietnamese-400-normal-Cn7ya5On.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-vietnamese-500-normal-BVzUBLGs.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-vietnamese-600-normal-Pvj4qcw_.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/chakra-petch-vietnamese-700-normal-gQuUA8Wu.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/index-DpymzEZv.css +1 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/index-DuXbXiXo.js +2 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-700-normal-BWTpRfYl.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-cyrillic-700-normal-CEoEElIJ.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-700-normal-C6CZE3T8.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-greek-700-normal-DEigVDxa.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-700-normal-BYuf6tUa.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-700-normal-D3wTyLJW.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-700-normal-CZipNAKV.woff2 +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-latin-ext-700-normal-CxPITLHs.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/jetbrains-mono-vietnamese-700-normal-BDLVIk2r.woff +0 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/light-B0F-b5Z6.js +20 -0
- flowdeck-0.2.1/src/flowdeck/static/assets/runtime-dom.esm-bundler-DESsN8Jj.js +2 -0
- flowdeck-0.2.1/src/flowdeck/static/favicon.svg +13 -0
- flowdeck-0.2.1/src/flowdeck/static/index.html +18 -0
- flowdeck-0.2.1/src/flowdeck/storage.py +145 -0
- flowdeck-0.2.1/src/flowdeck/tasks/__init__.py +1 -0
- flowdeck-0.2.1/src/flowdeck/tasks/http_executor.py +985 -0
- flowdeck-0.2.1/src/flowdeck/tasks/paramdefs.py +170 -0
- flowdeck-0.2.1/src/flowdeck/tasks/paramextract.py +185 -0
- flowdeck-0.2.1/src/flowdeck/tasks/python_executor.py +234 -0
- flowdeck-0.2.1/src/flowdeck/tasks/sql_executor.py +683 -0
- flowdeck-0.2.1/src/flowdeck/tasks/timevars.py +125 -0
- flowdeck-0.2.1/src/flowdeck/tasks/ui_registry.py +394 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.venv/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
|
|
9
|
+
# FlowDeck 运行时数据
|
|
10
|
+
.flowdeck/
|
|
11
|
+
data/
|
|
12
|
+
*.db
|
|
13
|
+
|
|
14
|
+
# Node / 前端
|
|
15
|
+
node_modules/
|
|
16
|
+
frontend/dist/
|
|
17
|
+
*.local
|
|
18
|
+
|
|
19
|
+
# IDE / 系统
|
|
20
|
+
.idea/
|
|
21
|
+
.vscode/
|
|
22
|
+
.DS_Store
|
|
23
|
+
Thumbs.db
|
|
24
|
+
|
|
25
|
+
# 日志
|
|
26
|
+
*.log
|
|
27
|
+
|
|
28
|
+
# PyPI token(本地凭据,绝不入库)
|
|
29
|
+
scripts/pypi_token.local
|
|
30
|
+
src/flowdeck/static
|
|
31
|
+
docs/
|
flowdeck-0.2.1/LICENSE
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
1. Definitions
|
|
5
|
+
--------------
|
|
6
|
+
|
|
7
|
+
1.1. "Contributor"
|
|
8
|
+
means each individual or legal entity that creates or contributes to
|
|
9
|
+
the creation of Modifications.
|
|
10
|
+
|
|
11
|
+
1.2. "Contributor Version"
|
|
12
|
+
means the combination of the Contributions of others (if any) used
|
|
13
|
+
by a Contributor and that particular Contributor's Contribution.
|
|
14
|
+
|
|
15
|
+
1.3. "Contribution"
|
|
16
|
+
means Covered Software of a particular Contributor made by that
|
|
17
|
+
particular Contributor.
|
|
18
|
+
|
|
19
|
+
1.4. "Covered Software"
|
|
20
|
+
means Software (modified or unmodified by either contributor) under
|
|
21
|
+
the terms of the Mozilla Public License version 2.0.
|
|
22
|
+
|
|
23
|
+
1.5. "Source Code Form"
|
|
24
|
+
means the form of the work preferred for making modifications,
|
|
25
|
+
including but not limited to software source code, documentation
|
|
26
|
+
source, and configuration files.
|
|
27
|
+
|
|
28
|
+
1.6. "Object Code Form"
|
|
29
|
+
means any form of a work other than Source Code Form.
|
|
30
|
+
|
|
31
|
+
1.7. "Major Component"
|
|
32
|
+
means the major components (kernel, compiler, and so on) of the
|
|
33
|
+
specific operating system (if any) on which the work runs, or a
|
|
34
|
+
compiler used to produce the work, or an object code interpreter
|
|
35
|
+
used to run it.
|
|
36
|
+
|
|
37
|
+
1.8. "Compilation"
|
|
38
|
+
means the aggregate of all the Covered Software in an executable or
|
|
39
|
+
object code form, as well as any modifications to it and its
|
|
40
|
+
constituent files, combined with all other software in that
|
|
41
|
+
executable or object code form.
|
|
42
|
+
|
|
43
|
+
1.9. "Modifications"
|
|
44
|
+
means any of the following:
|
|
45
|
+
|
|
46
|
+
(a) any file in Source Code Form that results from an addition to,
|
|
47
|
+
deletion from, or modification of the contents of Covered
|
|
48
|
+
Software; or
|
|
49
|
+
|
|
50
|
+
(b) any new file in Source Code Form that contains any Covered
|
|
51
|
+
Software.
|
|
52
|
+
|
|
53
|
+
1.10. "Standard Interface"
|
|
54
|
+
means an interface that either is an official standard defined by a
|
|
55
|
+
recognized standards body, or, in the case of interfaces specified
|
|
56
|
+
for a particular programming language, one that is widely used among
|
|
57
|
+
developers working in that language.
|
|
58
|
+
|
|
59
|
+
1.11. "Patent Claims" of a Contributor
|
|
60
|
+
means any patent claim(s), including without limitation, method,
|
|
61
|
+
process, and apparatus claims, in any patent Licensable by such
|
|
62
|
+
Contributor that would be infringed, but for the grant of the
|
|
63
|
+
License, by the making, using, selling, offering for sale, having
|
|
64
|
+
made, import, or transfer of either its Contributions or its
|
|
65
|
+
Contributor Version.
|
|
66
|
+
|
|
67
|
+
1.12. "Secondary License"
|
|
68
|
+
means either the GNU General Public License, Version 2.0, the GNU
|
|
69
|
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
70
|
+
Public License, Version 3.0, or any later versions of those
|
|
71
|
+
licenses.
|
|
72
|
+
|
|
73
|
+
1.13. "Source Code Form for Such Modifications"
|
|
74
|
+
means Source Code Form to the extent it contains the Modifications
|
|
75
|
+
made by a particular Contributor.
|
|
76
|
+
|
|
77
|
+
2. Purpose and License Terms
|
|
78
|
+
----------------------------
|
|
79
|
+
|
|
80
|
+
2.1. The License
|
|
81
|
+
This License governs use, redistribution and modification of
|
|
82
|
+
Covered Software. It does not govern any other agreements between
|
|
83
|
+
parties, and it does not grant any rights to any other software
|
|
84
|
+
or services.
|
|
85
|
+
|
|
86
|
+
2.2. Effect of This License
|
|
87
|
+
You and any recipient of Covered Software agree to be bound by this
|
|
88
|
+
License. Any other terms or conditions (whether stated in the text
|
|
89
|
+
of a notice, in an agreement, or otherwise) are void with respect
|
|
90
|
+
to this License and Covered Software, except as expressly provided
|
|
91
|
+
in Section 3.4. "Further Restrictions" below.
|
|
92
|
+
|
|
93
|
+
2.3. Grant of Patent License
|
|
94
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
95
|
+
non-exclusive license:
|
|
96
|
+
|
|
97
|
+
(a) under intellectual property rights (other than patent or
|
|
98
|
+
trademark) Licensable by such Contributor to use, reproduce,
|
|
99
|
+
make available, and have made available its Contributions,
|
|
100
|
+
in Source Code Form and Object Code Form;
|
|
101
|
+
|
|
102
|
+
(b) under Patent Claims of such Contributor to make, use, sell,
|
|
103
|
+
offer for sale, have made, import, and otherwise transfer
|
|
104
|
+
either its Contributions or its Contributor Version, subject to
|
|
105
|
+
conditions and limitations as described in Section 3.
|
|
106
|
+
|
|
107
|
+
For purposes of this Section 2.3, "Contributor Version" means a
|
|
108
|
+
Contribution embodied in a form other than Source Code Form,
|
|
109
|
+
including the transfer of such a Contribution in any medium,
|
|
110
|
+
whether by tangible object, file transfer, or otherwise.
|
|
111
|
+
|
|
112
|
+
2.4. Grant of Copyright License
|
|
113
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
114
|
+
non-exclusive license:
|
|
115
|
+
|
|
116
|
+
(a) under intellectual property rights (other than patent or
|
|
117
|
+
trademark) Licensable by such Contributor to use, reproduce,
|
|
118
|
+
make available, and have made available its Contributions,
|
|
119
|
+
in Source Code Form and Object Code Form; and
|
|
120
|
+
|
|
121
|
+
(b) under Patent Claims of such Contributor to make, use, sell,
|
|
122
|
+
offer for sale, have made, import, and otherwise transfer
|
|
123
|
+
either its Contributions or its Contributor Version.
|
|
124
|
+
|
|
125
|
+
3. Conditions and Limitations
|
|
126
|
+
-----------------------------
|
|
127
|
+
|
|
128
|
+
3.1. No Trademark License
|
|
129
|
+
This License does not grant permission to use the trade names,
|
|
130
|
+
trademarks, service marks, or product names of the Licensor,
|
|
131
|
+
except as required for reasonable and customary use in describing
|
|
132
|
+
the origin of the Covered Software and reproducing the content of
|
|
133
|
+
the NOTICE file.
|
|
134
|
+
|
|
135
|
+
3.2. Fair Dealing
|
|
136
|
+
Nothing in this License grants You any right to use, reproduce,
|
|
137
|
+
make available, or have made available Covered Software in any way
|
|
138
|
+
that would infringe any moral rights of the Licensor or any
|
|
139
|
+
rights of publicity or privacy of any person.
|
|
140
|
+
|
|
141
|
+
3.3. Warranty Disclaimer
|
|
142
|
+
Covered Software is provided under this License on an "as is"
|
|
143
|
+
basis, without warranty of any kind, either expressed, implied or
|
|
144
|
+
statutory, including, without limitation, warranties that the
|
|
145
|
+
Covered Software is free of defects, merchantable, fit for a
|
|
146
|
+
particular purpose or non-infringing. The entire risk as to the
|
|
147
|
+
quality and performance of the Covered Software is with You.
|
|
148
|
+
Should any Covered Software prove defective in any respect, You
|
|
149
|
+
(not any Contributor) assume the cost of any necessary servicing,
|
|
150
|
+
repair, or correction. This disclaimer of warranty constitutes an
|
|
151
|
+
essential part of this License. No use of any Covered Software is
|
|
152
|
+
authorized under this License except under this disclaimer.
|
|
153
|
+
|
|
154
|
+
3.4. Limitation of Liability
|
|
155
|
+
Under no circumstances and under no legal theory, whether tort
|
|
156
|
+
(including negligence), contract, or otherwise, shall any
|
|
157
|
+
Contributor, or anyone who distributes Covered Software as
|
|
158
|
+
permitted above, be liable to You for any direct, indirect,
|
|
159
|
+
special, incidental, or consequential damages of any character
|
|
160
|
+
including, without limitation, damages for lost profits, loss of
|
|
161
|
+
goodwill, work stoppage, computer failure or malfunction, or any
|
|
162
|
+
and all other commercial damages or losses, even if such party
|
|
163
|
+
shall have been informed of the possibility of such damages. This
|
|
164
|
+
limitation of liability shall not apply to liability for death or
|
|
165
|
+
personal injury resulting from such party's negligence to the
|
|
166
|
+
extent applicable law prohibits such limitation. Some
|
|
167
|
+
jurisdictions do not allow the exclusion or limitation of
|
|
168
|
+
incidental or consequential damages, so this exclusion and
|
|
169
|
+
limitation may not apply to You.
|
|
170
|
+
|
|
171
|
+
3.5. Acceptance of Terms
|
|
172
|
+
By using, reproducing, making available, distributing, or
|
|
173
|
+
modifying Covered Software, You indicate that You have read and
|
|
174
|
+
understand this License and agree to be bound by it on behalf of
|
|
175
|
+
Yourself and anyone You distribute Covered Software to.
|
|
176
|
+
|
|
177
|
+
4. General Terms
|
|
178
|
+
----------------
|
|
179
|
+
|
|
180
|
+
4.1. Modifications
|
|
181
|
+
The Covered Software may be modified only if You comply with the
|
|
182
|
+
terms of this License with respect to the Modified Covered
|
|
183
|
+
Software, including making the Source Code Form for such
|
|
184
|
+
Modifications available under this License.
|
|
185
|
+
|
|
186
|
+
4.2. Distribution
|
|
187
|
+
You may distribute Covered Software (including Modified Versions)
|
|
188
|
+
provided that You:
|
|
189
|
+
|
|
190
|
+
(a) comply with the terms of this License with respect to the
|
|
191
|
+
Covered Software You distribute; and
|
|
192
|
+
|
|
193
|
+
(b) ensure that all recipients of the Covered Software receive a
|
|
194
|
+
copy of this License (or a later version, if permitted) with
|
|
195
|
+
the Covered Software.
|
|
196
|
+
|
|
197
|
+
4.3. Larger Work
|
|
198
|
+
You may create and distribute a Larger Work under terms of Your
|
|
199
|
+
choice, provided that You also comply with the requirements of
|
|
200
|
+
this License for the Covered Software. If the Larger Work is a
|
|
201
|
+
combination of Covered Software with a work governed by one or
|
|
202
|
+
more Primary Licenses, the terms of the Primary License(s) govern
|
|
203
|
+
the Covered Software portion of the Larger Work.
|
|
204
|
+
|
|
205
|
+
4.4. Notices
|
|
206
|
+
You may not remove or alter the substance of any license notices
|
|
207
|
+
(including copyright notices, patent notices, disclaimers of
|
|
208
|
+
warranty, or limitations of liability) contained within the
|
|
209
|
+
Source Code Form of the Covered Software, except that You may
|
|
210
|
+
alter any license notices to the extent required to remedy known
|
|
211
|
+
factual inaccuracies.
|
|
212
|
+
|
|
213
|
+
5. Inability to Comply Due to Statute or Regulation
|
|
214
|
+
---------------------------------------------------
|
|
215
|
+
|
|
216
|
+
If it is impossible for You to comply with any of the terms of this
|
|
217
|
+
License with respect to some or all of the Covered Software due to
|
|
218
|
+
statute, judicial order, or regulation, then You must separate the
|
|
219
|
+
Covered Software from the other components of your work and You must
|
|
220
|
+
comply with the terms of this License with respect to such Covered
|
|
221
|
+
Software.
|
|
222
|
+
|
|
223
|
+
6. Termination
|
|
224
|
+
--------------
|
|
225
|
+
|
|
226
|
+
6.1. The rights granted under this License will terminate
|
|
227
|
+
automatically if You fail to comply with any of its material terms
|
|
228
|
+
or conditions, unless such failure is cured within thirty (30)
|
|
229
|
+
days of Your becoming aware of the failure.
|
|
230
|
+
|
|
231
|
+
6.2. If You assert a patent infringement claim (excluding declaratory
|
|
232
|
+
judgment actions) against a Contributor alleging that the
|
|
233
|
+
Contributor's Contribution directly infringes a patent, then all
|
|
234
|
+
rights granted by that Contributor under this License shall
|
|
235
|
+
terminate upon sixty (60) days' notice from the Contributor unless
|
|
236
|
+
You agree, in a writing signed by the Contributor, to be bound by
|
|
237
|
+
a license for the patent acceptable to the Contributor.
|
|
238
|
+
|
|
239
|
+
6.3. If You assert a patent infringement claim against a Contributor
|
|
240
|
+
alleging that such Contributor's Contribution directly infringes
|
|
241
|
+
a patent, and the final court decision determines such claim to
|
|
242
|
+
be valid, then all rights granted by such Contributor under this
|
|
243
|
+
License shall survive such final court decision only if You agree,
|
|
244
|
+
in a writing signed by such Contributor, to be bound by a license
|
|
245
|
+
for the patent acceptable to such Contributor.
|
|
246
|
+
|
|
247
|
+
7. Disclaimer of Warranty
|
|
248
|
+
-------------------------
|
|
249
|
+
|
|
250
|
+
Covered Software is provided under this License on an "as is"
|
|
251
|
+
basis, without warranty of any kind, either expressed, implied or
|
|
252
|
+
statutory, including, without limitation, warranties that the
|
|
253
|
+
Covered Software is free of defects, merchantable, fit for a
|
|
254
|
+
particular purpose or non-infringing. The entire risk as to the
|
|
255
|
+
quality and performance of the Covered Software is with You.
|
|
256
|
+
Should any Covered Software prove defective in any respect, You
|
|
257
|
+
(not any Contributor) assume the cost of any necessary servicing,
|
|
258
|
+
repair, or correction. This disclaimer of warranty constitutes an
|
|
259
|
+
essential part of this License. No use of any Covered Software is
|
|
260
|
+
authorized under this License except under this disclaimer.
|
|
261
|
+
|
|
262
|
+
8. Limitation of Liability
|
|
263
|
+
--------------------------
|
|
264
|
+
|
|
265
|
+
Under no circumstances and under no legal theory, whether tort
|
|
266
|
+
(including negligence), contract, or otherwise, shall any Contributor,
|
|
267
|
+
or anyone who distributes Covered Software as permitted above, be
|
|
268
|
+
liable to You for any direct, indirect, special, incidental, or
|
|
269
|
+
consequential damages of any character including, without limitation,
|
|
270
|
+
damages for lost profits, loss of goodwill, work stoppage, computer
|
|
271
|
+
failure or malfunction, or any and all other commercial damages or
|
|
272
|
+
losses, even if such party shall have been informed of the possibility
|
|
273
|
+
of such damages. This limitation of liability shall not apply to
|
|
274
|
+
liability for death or personal injury resulting from such party's
|
|
275
|
+
negligence to the extent applicable law prohibits such limitation. Some
|
|
276
|
+
jurisdictions do not allow the exclusion or limitation of incidental or
|
|
277
|
+
consequential damages, so this exclusion and limitation may not apply
|
|
278
|
+
to You.
|
|
279
|
+
|
|
280
|
+
9. Accepting Warranty or Additional Liability
|
|
281
|
+
---------------------------------------------
|
|
282
|
+
|
|
283
|
+
While redistributing the Covered Software or Modified Versions
|
|
284
|
+
thereof, You may choose to offer, and charge a fee for, acceptance of
|
|
285
|
+
support, warranty, indemnity, or other liability obligations and/or
|
|
286
|
+
rights consistent with this License. However, in accepting such
|
|
287
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
288
|
+
responsibility, not on behalf of any other Contributor, and only if
|
|
289
|
+
You agree to indemnify, defend, and hold each Contributor harmless for
|
|
290
|
+
any liability incurred by, or claims asserted against, such Contributor
|
|
291
|
+
by reason of your accepting any such warranty or additional liability.
|
|
292
|
+
|
|
293
|
+
END OF TERMS AND CONDITIONS
|
flowdeck-0.2.1/PKG-INFO
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: flowdeck
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: APScheduler 的现代化前台:FastAPI + Vue3,plombery 的完美替代(兼容其 Python API)
|
|
5
|
+
Author-email: zyxc <1426094384@qq.com>
|
|
6
|
+
License: MPL-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: apscheduler,dashboard,etl,fastapi,pipeline,scheduler,task,workflow
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
20
|
+
Classifier: Topic :: System :: Monitoring
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: apscheduler<4.0,>=3.11.0
|
|
23
|
+
Requires-Dist: fastapi>=0.115.0
|
|
24
|
+
Requires-Dist: httpx>=0.27.0
|
|
25
|
+
Requires-Dist: pillow>=10.0
|
|
26
|
+
Requires-Dist: pydantic-settings>=2.3
|
|
27
|
+
Requires-Dist: pydantic>=2.7
|
|
28
|
+
Requires-Dist: pyyaml>=6.0
|
|
29
|
+
Requires-Dist: sqlalchemy>=2.0
|
|
30
|
+
Requires-Dist: uvicorn>=0.30.0
|
|
31
|
+
Requires-Dist: websockets>=12.0
|
|
32
|
+
Provides-Extra: mssql
|
|
33
|
+
Requires-Dist: pyodbc>=5.0; extra == 'mssql'
|
|
34
|
+
Provides-Extra: mysql
|
|
35
|
+
Requires-Dist: pymysql>=1.1; extra == 'mysql'
|
|
36
|
+
Provides-Extra: postgres
|
|
37
|
+
Requires-Dist: psycopg[binary]>=3.1; extra == 'postgres'
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
|
|
40
|
+
# FlowDeck
|
|
41
|
+
|
|
42
|
+
**现代化 Python 任务调度框架**:APScheduler 的 Web 控制台,[plombery](https://github.com/lucoelho/plombery) 的完美替代(兼容其 Python API)。
|
|
43
|
+
|
|
44
|
+
[中文](#中文) | [English](#english)
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
<a id="中文"></a>
|
|
49
|
+
|
|
50
|
+
## 中文
|
|
51
|
+
|
|
52
|
+
代码即配置的 Python 调度框架。FastAPI + Vue3,Web 控制台已内置在 Python 包中——无需 Node 环境,`pip install` 后开箱即用。
|
|
53
|
+
|
|
54
|
+
### 核心能力
|
|
55
|
+
|
|
56
|
+
- **代码即配置**:`@task` 定义任务、`register_pipeline(...)` 注册流水线,Cron / Interval 触发器随代码声明
|
|
57
|
+
- **Web 控制台**:仪表盘、流水线管理、实时日志终端、运行统计图表、停机日历、通知规则管理,全部内置
|
|
58
|
+
- **界面配置任务**:SQL / 存储过程任务直接在 Web 上编写,保存即热注册进调度器(免重启)
|
|
59
|
+
- **补数与重跑**:指定历史日期区间逐日回填(`${data_date}` 自动覆盖);失败 run 一键重跑整条或从失败任务断点续跑
|
|
60
|
+
- **暂停留痕**:UI 暂停后定时触发记为 SKIPPED(有迹可查),手动触发不受影响,重启后状态保持
|
|
61
|
+
- **停机日历**:节假日 / 维护窗口按日期区间自动跳过定时触发,手动运行与补数不受影响
|
|
62
|
+
- **失败告警**:failed / succeeded / timeout / missed / skipped / alert 六类事件推送到 webhook(企业微信模板开箱即用,任务结果表格可转图片直发企微)
|
|
63
|
+
- **漏跑巡检**:每小时自动对比「预期触发数 vs 实际运行数」,漏跑即告警
|
|
64
|
+
- **本地时间**:日志与数据库统一使用本地时区(根修 plombery 的 UTC 缺陷)
|
|
65
|
+
|
|
66
|
+
### 安装
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install flowdeck
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
数据库驱动按需安装(包本体不预装任何驱动):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install "flowdeck[postgres]" # psycopg[binary]
|
|
76
|
+
pip install "flowdeck[mssql]" # pyodbc(还需系统级 ODBC Driver)
|
|
77
|
+
pip install "flowdeck[mysql]" # pymysql
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
要求 Python >= 3.10。
|
|
81
|
+
|
|
82
|
+
### 快速开始
|
|
83
|
+
|
|
84
|
+
**验证安装(纯控制台模式)**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
flowdeck # 默认 127.0.0.1:8655
|
|
88
|
+
flowdeck --host 0.0.0.0 --port 9000
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
启动后访问 http://127.0.0.1:8655(API 文档见 `/docs`)。
|
|
92
|
+
|
|
93
|
+
> `flowdeck` 命令只启动「控制台 + 调度器」,不加载业务流水线,适合验证安装、查看历史运行数据、管理通知规则。
|
|
94
|
+
|
|
95
|
+
**编写流水线**
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
from pydantic import BaseModel
|
|
99
|
+
from flowdeck import task, register_pipeline, Trigger
|
|
100
|
+
|
|
101
|
+
class ReportParams(BaseModel):
|
|
102
|
+
data_date: str
|
|
103
|
+
|
|
104
|
+
@task
|
|
105
|
+
def extract(params: ReportParams):
|
|
106
|
+
return {"rows": 100}
|
|
107
|
+
|
|
108
|
+
@task
|
|
109
|
+
def load(params: ReportParams, ctx):
|
|
110
|
+
rows = ctx.get_upstream_output("extract")["rows"]
|
|
111
|
+
ctx.logger.info(f"入库 {rows} 行")
|
|
112
|
+
|
|
113
|
+
register_pipeline(
|
|
114
|
+
id="daily_report",
|
|
115
|
+
name="日报",
|
|
116
|
+
tasks=[extract, load],
|
|
117
|
+
params=ReportParams,
|
|
118
|
+
triggers=[Trigger(cron="0 8 * * *")],
|
|
119
|
+
)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
入口文件末尾启动:
|
|
123
|
+
|
|
124
|
+
```python
|
|
125
|
+
from flowdeck.cli import main
|
|
126
|
+
main()
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
运行入口文件即拥有 Web 控制台(http://127.0.0.1:8655)+ 调度器 + 你的全部流水线。
|
|
130
|
+
|
|
131
|
+
### 与 plombery 的关系
|
|
132
|
+
|
|
133
|
+
FlowDeck 兼容 plombery 的 Python API(`register_pipeline` / `@task` / `Trigger` 签名一致),并在此基础上扩展了超时控制、并发策略(`parallel` / `skip` / `cancel_previous`)、通知规则、停机日历、补数回填等能力,可直接替换。
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
<a id="english"></a>
|
|
138
|
+
|
|
139
|
+
## English
|
|
140
|
+
|
|
141
|
+
A configuration-as-code Python scheduling framework. FastAPI + Vue3, with the web console embedded in the Python package — no Node.js required, ready to use right after `pip install`.
|
|
142
|
+
|
|
143
|
+
### Key Features
|
|
144
|
+
|
|
145
|
+
- **Code as configuration**: define tasks with `@task`, register pipelines with `register_pipeline(...)`, declare Cron / Interval triggers in code
|
|
146
|
+
- **Web console**: dashboard, pipeline management, real-time log terminal, run statistics charts, downtime calendar, notification rules — all built in
|
|
147
|
+
- **Configure tasks in the UI**: write SQL / stored-procedure tasks directly on the web page; saving hot-registers them into the scheduler (no restart)
|
|
148
|
+
- **Backfill & rerun**: backfill a historical date range day by day (`${data_date}` is overridden automatically); rerun a failed run entirely or resume from the failed task
|
|
149
|
+
- **Pause with audit trail**: pausing from the UI marks scheduled triggers as SKIPPED (traceable); manual triggers are unaffected; state survives restarts
|
|
150
|
+
- **Downtime calendar**: skip scheduled triggers for holidays / maintenance windows by date range (all pipelines or selected ones); manual runs and backfills are unaffected
|
|
151
|
+
- **Alerting**: six event types (failed / succeeded / timeout / missed / skipped / alert) pushed to webhooks (WeCom template out of the box; task result tables can be rendered as images and sent directly to WeCom)
|
|
152
|
+
- **Missed-run patrol**: hourly comparison of expected vs actual trigger counts, alerting on any miss
|
|
153
|
+
- **Local time**: logs and database use the local timezone (fixing plombery's UTC flaw at the root)
|
|
154
|
+
|
|
155
|
+
### Installation
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
pip install flowdeck
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Install database drivers as needed (the package itself ships none):
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
pip install "flowdeck[postgres]" # psycopg[binary]
|
|
165
|
+
pip install "flowdeck[mssql]" # pyodbc (also requires a system ODBC Driver)
|
|
166
|
+
pip install "flowdeck[mysql]" # pymysql
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Requires Python >= 3.10.
|
|
170
|
+
|
|
171
|
+
### Quick Start
|
|
172
|
+
|
|
173
|
+
**Verify the installation (console-only mode)**
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
flowdeck # defaults to 127.0.0.1:8655
|
|
177
|
+
flowdeck --host 0.0.0.0 --port 9000
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Then open http://127.0.0.1:8655 (API docs at `/docs`).
|
|
181
|
+
|
|
182
|
+
> The `flowdeck` command starts only the console + scheduler without any business pipelines — ideal for verifying the installation, browsing historical runs, and managing notification rules.
|
|
183
|
+
|
|
184
|
+
**Writing pipelines**
|
|
185
|
+
|
|
186
|
+
```python
|
|
187
|
+
from pydantic import BaseModel
|
|
188
|
+
from flowdeck import task, register_pipeline, Trigger
|
|
189
|
+
|
|
190
|
+
class ReportParams(BaseModel):
|
|
191
|
+
data_date: str
|
|
192
|
+
|
|
193
|
+
@task
|
|
194
|
+
def extract(params: ReportParams):
|
|
195
|
+
return {"rows": 100}
|
|
196
|
+
|
|
197
|
+
@task
|
|
198
|
+
def load(params: ReportParams, ctx):
|
|
199
|
+
rows = ctx.get_upstream_output("extract")["rows"]
|
|
200
|
+
ctx.logger.info(f"Loaded {rows} rows")
|
|
201
|
+
|
|
202
|
+
register_pipeline(
|
|
203
|
+
id="daily_report",
|
|
204
|
+
name="Daily Report",
|
|
205
|
+
tasks=[extract, load],
|
|
206
|
+
params=ReportParams,
|
|
207
|
+
triggers=[Trigger(cron="0 8 * * *")],
|
|
208
|
+
)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Start at the end of your entry file:
|
|
212
|
+
|
|
213
|
+
```python
|
|
214
|
+
from flowdeck.cli import main
|
|
215
|
+
main()
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Running the entry file gives you the web console (http://127.0.0.1:8655) + scheduler + all your pipelines.
|
|
219
|
+
|
|
220
|
+
### Relation to plombery
|
|
221
|
+
|
|
222
|
+
FlowDeck is API-compatible with plombery (`register_pipeline` / `@task` / `Trigger` signatures are identical) and extends it with timeout control, concurrency strategies (`parallel` / `skip` / `cancel_previous`), notification rules, a downtime calendar, and backfilling — a drop-in replacement.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## License / 许可证
|
|
227
|
+
|
|
228
|
+
[MPL-2.0](LICENSE). Commercial use is permitted; modifications to this project's source files must be made available under MPL-2.0 with changes marked. / 允许商业使用;对本项目源码文件的修改必须以 MPL-2.0 开源并标注改动。
|