- Rename
Pipeline.execute
toPipeline.call
- Pipeline#call accepts any argument instead of just key word arguments or hashes
- Introduce constructor resolvers
- Expose :new and :call directly on NxtPipeline instead of only through NxtPipeline::Pipeline class
- Change step DSL: Introduce constructor option to specify the constructor to use for a step
- Introduce Configurations
- Expose step.status and step.meta_data accessors to set status and meta_data of steps in constructors
- Change arguments of error callbacks to be error, acc, step instead of acc, step, error and only pass by arity of callback
Replace after and before execute hooks with proper callbacks. Introduce before, after and around step callbacks
Add new attribute readers on step object.
After executing a step execution_finished_at execution_started_at and execution_duration will be set and can be accessed via attribute readers.
- Fix bug when registering an error without passing arguments in which case the callback didn't get executed. More info: #39
- Fix deprecation warnings for Ruby 2.7
-
Added pipeline callback support.
Nils Sommer
-
Renamed class and method names
Renamed
NxtPipeline::Segment
toNxtPipeline::Step
. RenamedNxtPipeline::Pipeline::segment
toNxtPipeline::Pipeline::step
. RenamedNxtPipeline::Pipeline#call
toNxtPipeline::Pipeline#run
. RenamedNxtPipeline::Pipeline#burst?
toNxtPipeline::Pipeline#failed?
. RenamedNxtPipeline::Pipeline#burst_segment
toNxtPipeline::Pipeline#failed_step
. RenamedNxtPipeline::Pipeline::rescue_segment_burst
toNxtPipeline::Pipeline::rescue_errors
.Nils Sommer
-
Setup guard to run specs upon file changes during development.
Nils Sommer
-
Added CHANGELOG file.
Nils Sommer
-
Initial Release.
Nils Sommer