GithubHelp home page GithubHelp logo

rikudoucronbundle's Issues

Application::find() must be of the type string, array given

When I'm trying to run my cron jobs by YAML file I got error like that:

[2023-09-22T12:36:00.529967+00:00] app.INFO: [CRON] Executing command imagesClean [] []
[2023-09-22T12:36:00.530003+00:00] app.ERROR: [CRON] Execution of command imagesClean failed [] []
[2023-09-22T12:36:00.530069+00:00] app.ERROR: [CRON] Argument 1 passed to Symfony\Bundle\FrameworkBundle\Console\Application::find() must be of the type string, array given, called in /var/www/html/vendor/rikudou/cron-bundle/Command/RunCronJobsCommand.php on line 84 [] []
[2023-09-22T12:36:00.530127+00:00] app.ERROR: [CRON] #0 /var/www/html/vendor/rikudou/cron-bundle/Command/RunCronJobsCommand.php(84): Symfony\Bundle\FrameworkBundle\Console\Application->find(Array) #1 /var/www/html/vendor/symfony/console/Command/Command.php(298): Rikudou\CronBundle\Command\RunCronJobsCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 /var/www/html/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand(Object(Rikudou\CronBundle\Command\RunCronJobsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /var/www/html/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Rikudou\CronBundle\Command\RunCronJobsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/bin/console(39): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) #8 {main} [] []
[2023-09-22T12:36:00.531052+00:00] console.DEBUG: Command "cron:run" exited with code "1" {"command":"cron:run","code":1} []

This is how my rikudou_cron.yml file looks like:

rikudou_cron:
    imagesClean:
      command: images:clean --limit 2500 > /root/imageclean.log
      cron_expression: "* * * * *"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.