Commit 2b36757
committed
job-sql: add job query service with SQL capability
Problem: Flux doesn't have a raw SQL interface to job data that
can utilize the sqlite JSON1 extensions.
Add a service that consumes the job manager journal and populates
an in-memory sqlite database with all jobs (active and inactive jobs).
The schema simply stores the jobid, eventlog, jobspec, and R.
The last three are kept in JSON format so sqlite JSON1 extensions
can be used to construct queries.
https://www.sqlite.org/json1.html1 parent efdffbf commit 2b36757
2 files changed
+608
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
0 commit comments