Releases: golemfactory/golem-sdk-task-executor
Releases · golemfactory/golem-sdk-task-executor
Release list
v2.1.0
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2024-07-24)
BREAKING CHANGES
- TaskExecutor now has new options. The old type
TaskExecutorOptionsis incompatible and creating an instance usingTaksExecutor.createnow has new parameters. - New events approach. Now Task Executor-specific events are available in
TaskExecutor.events.on, while events specific to GolemNetwork subdomains are available in eg.TaskExecutor.glm.market.events.on - The
WorkContextobject available in the worker function in therun()methods has now been renamed toExeUnitand thusctxhas been renamed toexe TaskExecutor.onActivityReadymethod has been moved toTaskExecutorOptionsassetupfunction- The current
WorkContext(ctx)object has a slightly different improved API according to the new spec in@golem-sdk/golem-js@3.0 - The current
WorkerFunctiontype has been renamed toTaskFunctionand name ofworkerobject has been renamed totaskFunction
Features
- A completely new approach to ordering work using
TaskExecutor.create(options: TaskExecutorOptions)and their individual components such as:order,payment,market,demand,tasketc. - Added setup and teardown functions as task options in ExecutorOptions
- New event dictionary and new approach to event handling
- Rewriting all examples for the new API
Code Refactoring
- The old API with
serviceshas been replaced by the use ofGolemNetworkand the use ofmanyOfto provideResourceRenatlPooland prepareExeUnit. The whole process of creating all golem entities has been encapsulated in the use of the new golem-js api
Tests
- All existing tests have been rewritten on the new API
v2.0.0-beta.2
2.0.0-beta.2 (2024-07-24)
Bug Fixes
- fixed running tasks in parallel for the maximum number defined in the parameter (8a31ccc)
v2.0.0-beta.1
2.0.0-beta.1 (2024-07-18)
BREAKING CHANGES
- TaskExecutor now has new options. The old type
TaskExecutorOptionsis incompatible and creating an instance usingTaksExecutor.createnow has new parameters. - New events approach. EventTarget parameter has been removed. Now Task Executor-specific events are available in
TaskExecutor.events.on, while events specific to GolemNetwork subdomains are available in eg.TaskExecutor.glm.market.events.on - The
WorkContextobject available in the worker function in therun()methods has now been renamed toExeUnitand thusctxhas been renamed toexe TaskExecutor.onActivityReadymethod has been moved toTaskExecutorOptionsassetupfunction- The current
WorkContext(ctx)object has a slightly different improved API according to the new spec in@golem-sdk/golem-js@3.0 - The current
WorkerFunctiontype has been renamed toTaskFunctionand name ofworkerobject has been renamed totaskFunction
Features
- A completely new approach to ordering work using
TaskExecutor.create(options: TaskExecutorOptions)and their individual components such as:order,payment,market,demand,tasketc. - Added setup and teardown functions as task options in ExecutorOptions
- New event dictionary and new approach to event handling
- Rewriting all examples for the new API
Code Refactoring
- The old API with
serviceshas been replaced by the use ofGolemNetworkand the use ofmanyOfto provideResourceRenatlPooland prepareExeUnit. The whole process of creating all golem entities has been encapsulated in the use of the new golem-js api
Tests
- All existing tests have been rewritten on the new API
v1.4.0
1.4.0 (2024-05-15)
Bug Fixes
- executor: start task service only when there is at least one confirmed proposal (4ada9e6)
- queue: fixed adding existing task to the queue when retrying (9ebb1b7)
- service: added additional task status checks during execution (f58ef63)
- service: added task state check to prevent double execution (d57d453)
- task: disabled task retry in case of timeout (c9ffc29)
- task: fixed taskStartupTimeout config parameter (438ab59)
- task: removed defaults for task timeout and task startup timeout (184f2e8)
- task: task retry only in case of GolemWorkError (9d79a6b)
Features
- task: added option retryOnTimeout that will allow the user to opt-in for retries (29dd5f9)
v1.4.0-beta.1
1.4.0-beta.1 (2024-05-10)
Bug Fixes
- service: start task service only when there is at least one confirmed proposal (4ada9e6)
- queue: fixed adding existing task to the queue when retrying (9ebb1b7)
- service: added additional task status checks during execution (f58ef63)
- task: disabled task retry in case of timeout by default (c9ffc29)
- task: fixed taskStartupTimeout config parameter (438ab59)
- task: removed defaults for task timeout and task startup timeout (184f2e8)
- task: task retry only in case of
GolemWorkErrorby default (9d79a6b)
Features
- task: added option
taskRetryOnTimeoutthat will allow the user to opt-in for retries (29dd5f9)