vtsykun / cron-bundle Goto Github PK
View Code? Open in Web Editor NEW:clock3: Docker friendly Symfony Cron Bundle for handling scheduled tasks consistently, parallel or via message queue
License: MIT License
:clock3: Docker friendly Symfony Cron Bundle for handling scheduled tasks consistently, parallel or via message queue
License: MIT License
PHP 8.2
symfony/framework-bundle: 6.2.5
The problem is here \Okvpn\Bundle\CronBundle\Loader\ScheduleLoaderInterface::getSchedules in getSchedules() PHPDoc.
Now it is
* @param array $options. Any options, like group.
But it should be:
* @param array $options Any options, like group.
This deprecation is thrown when executing Symfony's cache:clear :
2023-02-17T11:33:40+00:00 [info] User Deprecated: The "Okvpn\Bundle\CronBundle\Loader\ScheduleLoader::getSchedules()" method will require a new "array $options." argument in the next major version of its interface "Okvpn\Bundle\CronBundle\Loader\ScheduleLoaderInterface", not defining it is deprecated.
Greetings.
PHP 8.2
symfony/framework-bundle : 6.2.5
These deprecations are thrown when running okvpn:cron :
2023-02-17T11:14:58+00:00 [info] User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultName" for setting a command name is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "Okvpn\Bundle\CronBundle\Command\CronCommand" class instead.
2023-02-17T11:14:58+00:00 [info] User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultDescription" for setting a command description is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "Okvpn\Bundle\CronBundle\Command\CronCommand" class instead.
Executing cron 0 does not work!
Fix: in CronDebugCommand, replace:
$executeOne = (int)($input->getOption('execute-one') ?: -1);
by
$executeOne = -1;
if($input->getOption('execute-one') !== null){
$executeOne = (int)$input->getOption('execute-one');
}
This sprintf can produce number like "123,000000" (comma instead of dot) in some locales (ex. pl_PL) and createFromFormat
will then fail.
It can be made locale agnostic with:
number_format($unix, 6, '.', '')
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.