Skip to content

Releases

v1.2.0

Choose a tag to compare

@henomis henomis released this 21 Nov 09:36
ba234c3

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 (record on NodeCompleted, NodeFailed, NodeInterrupted), never folded. event.Version stays 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

v1.2.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@henomis henomis released this 20 Nov 18:19

Release candidate for v1.2.0: attempt records.

  • Job.SetRecord(v): a worker records what an attempt did; stored with its outcome (record on NodeCompleted, 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

Choose a tag to compare

@henomis henomis released this 20 Nov 12:59
8b34f2e

New public API, backward compatible.

  • packtrail.Namespaces(ctx, nc) lists the namespaces provisioned on the NATS account, sorted. A prefix p is listed when its p-events and p-cmd streams exist and p-cmd carries 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

  • Release v1.1.0: packtrail.Namespaces by @henomis in #16

Full Changelog: v1.0.3...v1.1.0

v1.0.3

Choose a tag to compare

@henomis henomis released this 19 Oct 18:29
0009ec5

Observability additions, all backward compatible.

  • Job.Logger() binds trace_id and span_id from a valid traceparent, on every job log line.
  • Choice rules take an optional name (unique within the node), recorded on ChoiceEvaluated.
  • Client.Resume takes WithResumedBy(actor) (CLI: resume -by); it is kept on the execution and reaches every attempt of the resumed run as Job.Context.ResumedBy.

What's Changed

  • Release v1.0.3: trace ids in logs, choice rule names, resumed_by by @henomis in #15

Full Changelog: v1.0.2...v1.0.3

v1.0.2

Choose a tag to compare

@henomis henomis released this 18 Oct 09:33
a92f15c

What's Changed

  • Release v1.0.2: the min:N join policy and logging by @henomis in #14

Full Changelog: v1.0.1...v1.0.2

v1.0.2-rc.1

v1.0.2-rc.1 Pre-release
Pre-release

Choose a tag to compare

@henomis henomis released this 17 Oct 12:12
  • 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:0 always succeeds). Its output holds every success; branches and errors tell which branches failed and why. When fewer than N succeed, it fails or routes to on_failure once every branch has finished.
  • all, any and quorum:N are unchanged.
  • Validation rejects a negative or non-numeric N and an N above the awaited branches; quorum:abc now reports quorum: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

Choose a tag to compare

@henomis henomis released this 11 Oct 15:02
4957dc4

What's Changed

  • Release v1.0.1: expiry that deletes, Start refused on another flow's execution id by @henomis in #13

Full Changelog: v1.0.0...v1.0.1

v1.0.1-rc.2

v1.0.1-rc.2 Pre-release
Pre-release

Choose a tag to compare

@henomis henomis released this 10 Oct 09:48
  • New flow field on_expire: archive (default) or delete. With delete, a finished execution is removed after its retention instead 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 ErrNotFound and 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 retention with on_expire: delete deletes at ten minutes.
  • New Engine.Delete and packtrail delete <exec>; Metrics.Deleted.
  • Upgrade every engine of a namespace before a flow uses the new fields: an older engine dead-letters the new delete command.

Full Changelog: v1.0.1-rc.1...v1.0.1-rc.2

v1.0.1-rc.1

v1.0.1-rc.1 Pre-release
Pre-release

Choose a tag to compare

@henomis henomis released this 07 Oct 14:53
  • Client.Start with WithExecutionID naming an execution (live or archived) of another flow now fails with ErrExecutionConflict instead of silently joining it.
  • New WithJoinExisting(false) start option: fail with ErrExecutionExists instead of joining an existing execution of the same flow.
  • Engine replies carry "joined": true for a start that found its execution already there, and a new conflict code.

Full Changelog: v1.0.0...v1.0.1-rc.1

v1.0.0

Choose a tag to compare

@henomis henomis released this 04 Oct 14:31

Full Changelog: v0.2.3...v1.0.0

⌂ 换网址