Files
backstage/packages/backend-tasks/CHANGELOG.md
T
github-actions[bot] 39e446d0ff Version Packages (next)
2022-04-05 07:35:01 +00:00

5.6 KiB

@backstage/backend-tasks

0.3.0-next.2

Patch Changes

  • a83babdd63: Fixed the initialDelay parameter of tasks to properly make task workers always wait before the first invocations on startup, not just the very first time that the task is ever created. This behavior is more in line with expectations. Callers to not need to update their code.

    Also clarified in the doc comment for the field that this wait applies only on an individual worker level. That is, if you have a cluster of workers then each individual machine may postpone its first task invocation by the given amount of time to leave room for the service to settle, but other workers may still continue to invoke the task on the regular cadence in the meantime.

0.3.0-next.1

Minor Changes

  • ab008a0988: Adds the ability to manually trigger tasks which are registered

Patch Changes

0.2.2-next.0

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • 9461f73643: BREAKING: The TaskDefinition type has been removed, and replaced by the equal pair TaskScheduleDefinition and TaskInvocationDefinition. The interface for PluginTaskScheduler.scheduleTask stays effectively unchanged, so this only affects you if you use the actual types directly.

    Added the method PluginTaskScheduler.createTaskSchedule, which returns a TaskSchedule wrapper that is convenient to pass down into classes that want to control their task invocations while the caller wants to retain control of the actual schedule chosen.

Patch Changes

  • ab7cd7d70e: Do some groundwork for supporting the better-sqlite3 driver, to maybe eventually replace @vscode/sqlite3 (#9912)
  • 7290dda9d4: Relaxed the task ID requirement to now support any non-empty string
  • ae2ed04076: Add support for cron syntax to configure task frequency - TaskScheduleDefinition.frequency can now be both a Duration and an object on the form { cron: string }, where the latter is expected to be on standard crontab format (e.g. '0 */2 * * *').
  • Updated dependencies

0.2.0-next.0

Minor Changes

  • 9461f73643: BREAKING: The TaskDefinition type has been removed, and replaced by the equal pair TaskScheduleDefinition and TaskInvocationDefinition. The interface for PluginTaskScheduler.scheduleTask stays effectively unchanged, so this only affects you if you use the actual types directly.

    Added the method PluginTaskScheduler.createTaskSchedule, which returns a TaskSchedule wrapper that is convenient to pass down into classes that want to control their task invocations while the caller wants to retain control of the actual schedule chosen.

Patch Changes

  • ab7cd7d70e: Do some groundwork for supporting the better-sqlite3 driver, to maybe eventually replace @vscode/sqlite3 (#9912)
  • 7290dda9d4: Relaxed the task ID requirement to now support any non-empty string
  • Updated dependencies

0.1.10

Patch Changes

0.1.9

Patch Changes

0.1.8

Patch Changes

  • Fix for the previous release with missing type declarations.
  • Updated dependencies

0.1.7

Patch Changes

0.1.6

Patch Changes

0.1.6-next.0

Patch Changes

0.1.5

Patch Changes

0.1.5-next.0

Patch Changes

0.1.4

Patch Changes

0.1.4-next.0

Patch Changes

0.1.3

Patch Changes

0.1.2

Patch Changes

  • e188b37024: Updated README to clarify the following:

    • Dashes cannot be used in the id, changed to an underscore in the example
    • The timeout is required, this was also added to the example
    • Added a note about tasks not running as expected for local development using persistent database
  • Updated dependencies

0.1.1

Patch Changes