Skip to content

Releases: golemfactory/golem-sdk-task-executor

v2.1.0

17 Oct 07:42
c0e168e
Compare
Choose a tag to compare

2.1.0 (2024-10-17)

Features

v2.0.2

04 Sep 16:03
022b22e
Compare
Choose a tag to compare

2.0.2 (2024-09-04)

Bug Fixes

  • deps: bumping up golem-js to 3.3 to get new improvements and fixes (b487ce9)

v2.0.1

09 Aug 19:53
84cd20a
Compare
Choose a tag to compare

2.0.1 (2024-08-09)

Bug Fixes

  • updated golem-js to 3.2.x to get new fixes (82d9c94)

v2.0.0

24 Jul 10:52
a5bd6d6
Compare
Choose a tag to compare

2.0.0 (2024-07-24)

BREAKING CHANGES

  • TaskExecutor now has new options. The old type TaskExecutorOptions is incompatible and creating an instance using TaksExecutor.create now 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 WorkContext object available in the worker function in the run() methods has now been renamed to ExeUnit and thus ctx has been renamed to exe
  • TaskExecutor.onActivityReady method has been moved to TaskExecutorOptions as setup function
  • The current WorkContext (ctx) object has a slightly different improved API according to the new spec in @golem-sdk/[email protected]
  • The current WorkerFunction type has been renamed to TaskFunction and name of worker object has been renamed to taskFunction

Features

  • A completely new approach to ordering work using TaskExecutor.create(options: TaskExecutorOptions) and their individual components such as: order, payment, market, demand, task etc.
  • 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 services has been replaced by the use of GolemNetwork and the use of manyOf to provide ResourceRenatlPool and prepare ExeUnit. 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

24 Jul 10:01
a0bacea
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

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

18 Jul 09:10
6eddaca
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

2.0.0-beta.1 (2024-07-18)

BREAKING CHANGES

  • TaskExecutor now has new options. The old type TaskExecutorOptions is incompatible and creating an instance using TaksExecutor.create now 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 WorkContext object available in the worker function in the run() methods has now been renamed to ExeUnit and thus ctx has been renamed to exe
  • TaskExecutor.onActivityReady method has been moved to TaskExecutorOptions as setup function
  • The current WorkContext (ctx) object has a slightly different improved API according to the new spec in @golem-sdk/[email protected]
  • The current WorkerFunction type has been renamed to TaskFunction and name of worker object has been renamed to taskFunction

Features

  • A completely new approach to ordering work using TaskExecutor.create(options: TaskExecutorOptions) and their individual components such as: order, payment, market, demand, task etc.
  • 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 services has been replaced by the use of GolemNetwork and the use of manyOf to provide ResourceRenatlPool and prepare ExeUnit. 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

15 May 09:16
Compare
Choose a tag to compare

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

10 May 14:44
cb571c6
Compare
Choose a tag to compare
v1.4.0-beta.1 Pre-release
Pre-release

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 GolemWorkError by default (9d79a6b)

Features

  • task: added option taskRetryOnTimeout that will allow the user to opt-in for retries (29dd5f9)

v1.3.0

21 Mar 12:08
b4d2e89
Compare
Choose a tag to compare

1.3.0 (2024-03-21)

Features

  • task: added task startup timeout (6c85f60)

v1.2.0-beta.2

18 Mar 09:41
5f45355
Compare
Choose a tag to compare
v1.2.0-beta.2 Pre-release
Pre-release

1.2.0-beta.2 (2024-03-18)

Features

  • task: added task startup timeout (6c85f60)