Commit 215a025
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 ed07466 commit 215a025
2 files changed
+612
-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 | | |
| |||
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
0 commit comments