v2.2.6
·
8 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Adds tag filtering for task listings and fixes a race in the task database plugin.
- Task listings can be filtered by tag: the
GET /tasksendpoint and thels
command of the task CLI
accept a repeatabletagsoption that returns only tasks carrying at least
one of the given tags, andTaskInfonow reports each task's tags.
(#94) - The task database plugin
now serialises its per-run lifecycle writes with a dedicated task-run lock.
CrudDB.db_upsertis not atomic — it issues anUPDATEand onlyINSERTs
when nothing matched — so when the scheduler wrote thequeuedrow and a
consumer wrote therunningrow a few milliseconds later, the consumer's
UPDATEcould miss the not-yet-committedINSERT, fall through to its own
INSERTand violate the task-runs primary key. Holding the lock around the
upsert removes the race.
(#95) - TaskRun.lock
accepts an optionalnameto acquire a named sub-lock for the task run, and
timeoutnow defaults toNone. (#95)