Commit 3493a1d
committed
fix(workflows): fix race condition of workflow waking before commit (#2748)
<!-- Please make sure there is an issue that this PR is correlated to. -->
## Changes
<!-- If there are frontend changes, please include screenshots. -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Enhanced CLI output to display workflow and signal timestamps with millisecond precision.
* CLI now shows workflow and signal tags and workflow IDs in a formatted, readable manner.
* **Improvements**
* Grafana traces dashboard updated: simplified queries, improved trace table with error indicators, reorganized panels, and enhanced trace details.
* Logs and error panels in the dashboard were restructured for better visibility and usability.
* Worker shutdown process improved to accurately reflect remaining workflows at start.
* Workflow processing logic updated to ensure timely worker wake-up and avoid race conditions.
* **Bug Fixes**
* Reduced the threshold for logging long signal receive lag, enabling earlier detection of delays.
* **Chores**
* Added a new error variant for SQL connection failures to improve error clarity.
* Updated test structure: converted async test to sync with explicit runtime and removed obsolete test files.
* Improved internal logging messages for metrics loop shutdown.
* Minor comment and typo corrections for clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 6705af9 commit 3493a1d
15 files changed
Lines changed: 367 additions & 622 deletions
File tree
- docker/dev-full
- grafana/dashboards
- otel-collector
- packages
- common
- chirp-workflow/core
- src
- ctx
- db
- crdb_nats
- fdb_sqlite_nats
- tests
- chirp/client/src
- server-cli/src
- commands
- util/wf
- edge/services/pegboard/standalone/ws/src
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 32 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
| 1551 | + | |
| 1552 | + | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | 1555 | | |
| |||
1569 | 1570 | | |
1570 | 1571 | | |
1571 | 1572 | | |
1572 | | - | |
| 1573 | + | |
1573 | 1574 | | |
1574 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
1575 | 1578 | | |
1576 | 1579 | | |
1577 | 1580 | | |
| |||
1599 | 1602 | | |
1600 | 1603 | | |
1601 | 1604 | | |
| 1605 | + | |
| 1606 | + | |
1602 | 1607 | | |
1603 | 1608 | | |
1604 | | - | |
| 1609 | + | |
1605 | 1610 | | |
1606 | 1611 | | |
1607 | 1612 | | |
| |||
1695 | 1700 | | |
1696 | 1701 | | |
1697 | 1702 | | |
1698 | | - | |
| 1703 | + | |
1699 | 1704 | | |
1700 | 1705 | | |
1701 | 1706 | | |
1702 | 1707 | | |
1703 | 1708 | | |
1704 | | - | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
1705 | 1713 | | |
1706 | 1714 | | |
1707 | 1715 | | |
| |||
1849 | 1857 | | |
1850 | 1858 | | |
1851 | 1859 | | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1860 | 1878 | | |
1861 | 1879 | | |
1862 | 1880 | | |
| |||
2266 | 2284 | | |
2267 | 2285 | | |
2268 | 2286 | | |
2269 | | - | |
| 2287 | + | |
2270 | 2288 | | |
2271 | 2289 | | |
2272 | 2290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
13 | 29 | | |
| 30 | + | |
14 | 31 | | |
15 | 32 | | |
16 | 33 | | |
| |||
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
65 | | - | |
66 | | - | |
67 | 82 | | |
68 | 83 | | |
69 | 84 | | |
| |||
0 commit comments