nidus-sync/db
Eli Ribble 393836a86a
Fix notification of job happening before transaction is closed
This is kind of a wild one. Turns out that the triggers I was using
actually fire before the transaction is closed and I was primarily
getting lucky that the job was present on the other side of the
connection rather than having things built correctly.

I've fixed this by removing the trigger entirely and instead manually
triggering as part of the transaction. This makes the NOTIFY call happen
as soon as the transaction closes, just at the cost of making my
application be in charge of ensuring the NOTIFY gets called. Seems like
a win.

Part of doing this is porting the existing job creation code over to use
Jet. It's something I want to do anyway, so it's a win all around.
2026-05-22 23:34:38 +00:00
..
dberrors Get back to compiling, but using new jet for publicreport 2026-05-07 10:39:17 +00:00
dbinfo Remove now-extraneous latitude/longitude generated columns 2026-05-07 16:38:42 +00:00
enums Get back to compiling, but using new jet for publicreport 2026-05-07 10:39:17 +00:00
fieldseeker-schema/insert Initially made it through full update with new fieldseeker schema 2025-12-05 23:11:57 +00:00
gen/nidus-sync Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
jet Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
migrations Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
models Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
prepared_functions Use a prepared function and get a result 2025-12-02 22:44:51 +00:00
query Fix notification of job happening before transaction is closed 2026-05-22 23:34:38 +00:00
sql Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
bobgen.sh Remove bob submodule, add arcgis.user 2026-01-15 19:20:39 +00:00
bobgen.yaml Add contacts, rework comms schema 2026-05-15 16:58:28 +00:00
connection.go Increase DB connections to 10 2026-05-19 20:32:35 +00:00
fieldseeker.go Move internal references to new source hosting 2026-05-19 15:33:57 +00:00
geo.go Prettier everything, remove vendored bootstrap 2026-03-21 19:41:51 +00:00
jetgen.sh Create custom jet template for both stadia and arcgis 2026-05-01 15:11:20 +00:00
pgdata.go Save tags on pool rows, show errors in summary table 2026-02-16 16:38:04 +00:00
prepared.go Remove unused stored procedure function 2026-05-19 15:14:06 +00:00
tx.go lint: remove embedded field that's unnecessary 2026-05-19 15:24:56 +00:00
updater.go Switch to using the Gleipnir fork of jet 2026-05-09 01:48:56 +00:00