# Functions
Create inserts a new resolution in DB.
ListResolutions returns a collection of existing task resolutions optionally filtered by task, resolver username, state or instance ID a page size can be passed to limit the size of the collection, and also a pointer to the previous page's last element.
LoadFromPublicID returns a single task resolution given its public ID.
LoadLockedFromPublicID returns a single task resolution given its public ID while acquiring a lock on its DB row, to ensure only this instance keeps access to it until the surrounding transaction is done (ensure that only this instance of µTask collects this resolution for execution).
LoadLockedNoWaitFromPublicID returns a single task resolution given its public ID while acquiring a lock on its DB row, to ensure only this instance keeps access to it until the surrounding transaction is done (ensure that only this instance of µTask collects this resolution for execution).
RotateResolutions loads all resolutions stored in DB and makes sure that their cyphered content has been handled with the latest available storage key.
# Constants
all valid resolution states.
blocked by client error, bad input, etc..
blocked by unsolvable dependencies.
encountered a fatal non-client error.
has reached max retries, still failing.
blocked by a crash, needs human intervention.
all valid resolution states.
all valid resolution states.
all valid resolution states.
a step failed, we'll retry, keep the resolution running.
pause execution in order to make safe updates.
all valid resolution states.
all valid resolution states.
all valid resolution states.
all valid resolution states.
default on creation.
all valid resolution states.
# Structs
DBModel is a resolution's representation in DB.
Resolution is the full representation of a task's resolution process composed from data from "resolution" table and "task" table All intermediary state of execution will be held by this structure.