Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 2.45 KB

UPGRADING.md

File metadata and controls

68 lines (42 loc) · 2.45 KB

From 4.x to 5.x

The package drops support for Laravel 10 and adds support for Laravel 12.

Configuration type strictness (Impact: low)

The package now uses config()->string() and config()->array() to enforce receiving the correct types from the Laravel configuration file.

This should not give any problems but you should verify the configuration settings.

There are no other breaking changes.

From 3.x to 4.x

Renamed environment names (Impact: high)

The following environment variables have been shortened:

  • STACKKIT_CLOUD_TASKS_PROJECTCLOUD_TASKS_PROJECT
  • STACKKIT_CLOUD_TASKS_LOCATIONCLOUD_TASKS_LOCATION
  • STACKKIT_CLOUD_TASKS_QUEUECLOUD_TASKS_QUEUE
  • STACKKIT_CLOUD_TASKS_HANDLERCLOUD_TASKS_HANDLER
  • STACKKIT_CLOUD_TASKS_SERVICE_EMAILCLOUD_TASKS_SERVICE_EMAIL

The following environment variables have been renamed to be more consistent:

  • STACKKIT_APP_ENGINE_TASKCLOUD_TASKS_APP_ENGINE_TASK
  • STACKKIT_APP_ENGINE_SERVICECLOUD_TASKS_APP_ENGINE_SERVICE

The following environment variable has been removed:

  • STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE

Removed dashboard (Impact: high)

The dashboard has been removed to keep the package minimal. A separate composer package might be created with an updated version of the dashboard.

New configuration file (Impact: medium)

The configuration file has been updated to reflect the removed dashboard and to add new configurable options.

Please publish the new configuration file:

php artisan vendor:publish --tag=cloud-tasks --force

Dispatch deadline (Impact: medium)

The dispatch_deadline has been removed from the task configuration. You may now use Laravel's timeout configuration to control the maximum execution time of a task.

From 2.x to 3.x

PHP 7.2 and 7.3, and Laravel 5.x are no longer supported.

Update handler URL (Impact: high)

The handler URL environment has been simplified. Please change it like this:

# Before
STACKKIT_CLOUD_TASKS_HANDLER=https://my-app/handle-task
# After
STACKKIT_CLOUD_TASKS_HANDLER=https://my-app

It's also allowed to remove this variable entirely in 3.x: The package will automatically use the application URL if the STACKKIT_CLOUD_TASKS_HANDLER environment is not present. If you omit it, please ensure the trusted proxy have been configured in your application. Otherwise, you might run into weird issues. :-)