All notable changes to this project will be documented in this file.
0.2.1 - 2024-08-12
Fixed
- Lowered the
go
directives ingo.mod
to Go 1.21, which River aims to support. A more modern version of Go is specified with thetoolchain
directive. This should provide more flexibility on the minimum required Go version for programs importing River. PR #31. - Fixed a potential panic when unwrapping the pro driver and executor.
v0.2.0 - 2024-08-03
Added
Tasks can now be dynamically added to an existing workflow. The
riverworkflow.FromExisting()
constructor initiates a workflow from an existing job in that workflow. New tasks can be added using the same.Add()
method that's used for a brand new worfklow. When preparing the workflow for insert using top-levelPrepare
andPrepareTx
functions, existing jobs will be automatically loaded as needed to validate the workflow dependency graph.New top-level functions in the
riverworkflow
package forPrepare
andPrepareTx
. These are used to prepare a workflow's tasks/jobs for insertion into the database, including validations of task dependencies. These functions should be preferred overworkflow.Prepare
which will be removed in the next release.
Deprecated
- The
Prepare
method onriverworkflow.Workflow
has been deprecated in favor of the new top-levelPrepare
andPrepareTx
functions in that package. The new functions present a single interface for preparing workflow tasks for insertion, whether the workflow is brand new or for adding tasks to an existing workflow. This method will be removed in an upcoming release.
v0.1.1 - 2024-07-25
Added
- This is the initial release of River Pro.