Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 2.06 KB

UPGRADING.md

File metadata and controls

56 lines (36 loc) · 2.06 KB

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. :-)