You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give riverqueue.Job fully defined properties + timestamps as UTC (#26)
Previously, the internal sqlc `RiverJob` row was fully typed by virtue
of being generated by sqlc, but the `riverqueue.Job` type was undefined,
with typechecks working by using a `cast`.
Here, give `riverqueue.Job` a full set of defined properties. This is
better for things like conveying type information and autocomplete, but
has a few other side benefits:
* Make sure to return all timestamps as UTC. Previously, they'd be in
whatever your local timezone is.
* Give some fields like `args`, `metadata`, and `state` better types
(the first two were previously `Any`).
Lastly, modify `InsertResult` somewhat to make `job` non-optional since
it's always returned, even if insert was skipped, because if it was we
look it up via select query.
0 commit comments