Repository navigation
Releases
Releases · henomis/packtrail
v1.2.0
New public API, backward compatible. Opt-in: nothing is stored unless a worker records.
Job.SetRecord(v): a worker records what an attempt did; stored with its outcome (recordonNodeCompleted,NodeFailed,NodeInterrupted), never folded.event.Versionstays 1.Client.RecordHistory(ctx, exec, node): the records per attempt, oldest first.worker.WithMaxRecordBytes(n): oversized records are truncated, not refused.packtrail records <exec> <node>; packtrail-ui shows an attempt's record.
What's Changed
Full Changelog: v1.1.0...v1.2.0
v1.2.0-rc.1
Release candidate for v1.2.0: attempt records.
Job.SetRecord(v): a worker records what an attempt did; stored with its outcome (recordonNodeCompleted,NodeFailed,NodeInterrupted), never folded.Client.RecordHistory(ctx, exec, node): the records per attempt, oldest first.worker.WithMaxRecordBytes(n): oversized records are truncated, not refused.packtrail records <exec> <node>; packtrail-ui shows an attempt's record.
Built from PR #17. Try it with go get github.com/henomis/packtrail@v1.2.0-rc.1.
v1.1.0
New public API, backward compatible.
packtrail.Namespaces(ctx, nc)lists the namespaces provisioned on the NATS account, sorted. A prefixpis listed when itsp-eventsandp-cmdstreams exist andp-cmdcarries packtrail's provisioning metadata (packtrail.partitions,packtrail.protocol). It needs permission for$JS.API.STREAM.LIST.- packtrail-ui uses it for namespace discovery; behaviour is unchanged.
What's Changed
Full Changelog: v1.0.3...v1.1.0
v1.0.3
Observability additions, all backward compatible.
Job.Logger()bindstrace_idandspan_idfrom a valid traceparent, on every job log line.- Choice rules take an optional
name(unique within the node), recorded onChoiceEvaluated. Client.ResumetakesWithResumedBy(actor)(CLI:resume -by); it is kept on the execution and reaches every attempt of the resumed run asJob.Context.ResumedBy.
What's Changed
Full Changelog: v1.0.2...v1.0.3
v1.0.2
v1.0.2-rc.1
- New join policy
min:N: the join waits for every awaited branch to finish, cancels none of them, and succeeds when at least N succeeded (min:0always succeeds). Its output holds every success;branchesanderrorstell which branches failed and why. When fewer than N succeed, it fails or routes toon_failureonce every branch has finished. all,anyandquorum:Nare unchanged.- Validation rejects a negative or non-numeric N and an N above the awaited branches;
quorum:abcnow reportsquorum:N needs N > 0. - Upgrade every engine of a namespace before a flow uses
min:N.
Full Changelog: v1.0.1...v1.0.2-rc.1
v1.0.1
v1.0.1-rc.2
- New flow field
on_expire:archive(default) ordelete. Withdelete, a finished execution is removed after itsretentioninstead of being archived. - New flow field
archive_retention: an archived execution (by retention or by hand) is deleted that long after it was archived. Without it archives are kept forever, as before. - A deleted execution leaves nothing in NATS: events, index entries, snapshot, blobs, timers, archive objects and history segments are removed, without delete markers. It reads as
ErrNotFoundand its id may start a new execution. - An execution is never deleted sooner than ten minutes after it finished: message ids are derived from the execution id and deduplicated for that long. A shorter
retentionwithon_expire: deletedeletes at ten minutes. - New
Engine.Deleteandpacktrail delete <exec>;Metrics.Deleted. - Upgrade every engine of a namespace before a flow uses the new fields: an older engine dead-letters the new
deletecommand.
Full Changelog: v1.0.1-rc.1...v1.0.1-rc.2
v1.0.1-rc.1
Client.StartwithWithExecutionIDnaming an execution (live or archived) of another flow now fails withErrExecutionConflictinstead of silently joining it.- New
WithJoinExisting(false)start option: fail withErrExecutionExistsinstead of joining an existing execution of the same flow. - Engine replies carry
"joined": truefor a start that found its execution already there, and a newconflictcode.
Full Changelog: v1.0.0...v1.0.1-rc.1