platformsh-templates / laravel

Laravel template for Platform.sh.
23 stars 98 forks source link

Laravel 10 cron #55

Closed danharper83 closed 12 months ago

danharper83 commented 12 months ago

What in this template can be improved or added as a feature?

Laravel 10 scheduling requires cron to run every minute, this is currently not possible with platform so a work around needs to be documented.

What exactly should be updated?

Cron schedule

How important is this feature to you?

Scheduling is not useable in laravel 10

Additional context

No response

danharper83 commented 12 months ago

I think adding this to the platfrom yaml should work

workers:
   queue:
       size: S
       commands:
           # To minimize leakage, the queue worker will stop every hour
           # and get restarted automatically.
           start: |
               php artisan schedule:work --max-time=3600
gilzow commented 12 months ago

This is how it is now https://github.com/platformsh-templates/laravel/blob/master/.platform.app.yaml#L97 Are you perhaps looking at an older version of the template? You can check the file .platform/last.updated to see when your version was generated.

danharper83 commented 12 months ago

I think I must be using an older one.