deboorn / expbackoffworker Goto Github PK
View Code? Open in Web Editor NEWAdds automatic exponential backoff to Laravel 5's queue worker
License: Apache License 2.0
Adds automatic exponential backoff to Laravel 5's queue worker
License: Apache License 2.0
It looks like this no longer works with Laravel 5.3 (and possibly other versions).
Declaration of ExpBackoffWorker\Worker::process($connection, Illuminate\Contracts\Queue\Job $job, $maxTries = 0, $delay = 0) should be compatible with Illuminate\Queue\Worker::process($connectionName, $job, Illuminate\Queue\WorkerOptions $options)
There is a change in the method signature as well as some of the internal implementation details.
We are having issues with Laravel Backup by Spatie due to rate limiting at Digital Ocean Spaces. We get time-outs / 503s. Besides options PHP Fly League S3 Driver (used by laravel Backup) gives us to do better error reporting there is no exponential backoff built in. We chatted with Flysystem https://github.com/thephpleague/flysystem-aws-s3-v3/issues/205 and Laravel Spatie spatie/laravel-backup#783 . Both agree exponential backoff is a good idea, but both packages do not provide this service.
So it would be great to either show in a test case how Laravel Backup could be used or an example in the README.md perhaps. This would help us a lot in our quest to get exponential backup to work.
This change is vital to us to have Digital Ocean Spaces work for us for backups and potentially loading of static data. Currently backups only work partly and we had to give on on using their CDN for loading images of. Exponential Backoff would allows us to retry backups, cleanup of old backups after an x number of backups have been stored.
Only idea of implementation I can think of currently is either an example of integration shown with a test or README.md example here or a new package that both uses Laravel Backup and Exponential Backoff. The former I think is better as both PHP Flysystem S3 nor Spatie Laravel Backup want to implement this directly as they want to focus on the core features of their respective packages.
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.