Commit 4259d15
Fix ingest_wait.sh: null-data handling, Arroyo state detection, longer timeout
Three bugs caused the pipeline to always show as 'not found':
1. data.get('data', []) returns None when Arroyo returns {"data": null} for an
empty pipeline list. dict.get() only falls back to the default when the key
is absent, not when the value is null. Fixed with (data.get('data') or []).
2. Arroyo signals a running pipeline via state=null + stop='none', not a literal
"Running" string. The ingest_wait.sh state check was looking for the wrong
value; the correct pattern is already used in asap-tools/run_pipeline.sh.
3. MAX_PIPELINE_WAIT=300s is too short: Arroyo must compile Rust UDFs before
the pipeline can start, which takes several minutes in CI. Raised to 600s.
Also: normalise hyphens/underscores in the name match so 'asap-demo' matches
whether Arroyo stores it as 'asap-demo' or 'asap_demo'; add pipeline list dump
on timeout for easier future diagnosis.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7070ba7 commit 4259d15
1 file changed
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
29 | 45 | | |
30 | 46 | | |
31 | | - | |
| 47 | + | |
32 | 48 | | |
33 | 49 | | |
34 | 50 | | |
35 | 51 | | |
36 | 52 | | |
37 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
41 | | - | |
| 60 | + | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
| |||
0 commit comments