Git Product home page Git Product logo

Comments (7)

liebig avatar liebig commented on July 24, 2024

Do you see an entry at the cron_job database table for your job with the name 'collect'? If yes, there seems to be a problem with your insert database code. You code should look like:

Event::listen('cron.collectJobs', function() {
    Cron::add('collect', '*/2 * * * *', function() {
                    // Your code for database inserting
                   // return null if the database operation worked
                  // or return error string if there was an error
                });
});

Please run the php artisan cron:run every minute. By the way, I will not support your database inserting code.

from cron.

mrlonely90 avatar mrlonely90 commented on July 24, 2024

Thanks so much!

from cron.

mrlonely90 avatar mrlonely90 commented on July 24, 2024

Can I set time run cron 5 minutes a time
Ex: 4:00 4:05 4:10 ....
Not: 4:05 5:05 :6:05 ...

from cron.

liebig avatar liebig commented on July 24, 2024

I don't understand what you mean. Please use Google to find information about finding the right cron expression or use a generator like http://cron.nmonitoring.com/cron-generator.html

from cron.

mrlonely90 avatar mrlonely90 commented on July 24, 2024

When you config time cron '/5 * * * *' it will be run cron at the time : 1:05 , and next 2:05, .....
I want to set time cron run at time : 1:05, next 1:10, 1:15, ...., 2:05, 2:10, .....

from cron.

liebig avatar liebig commented on July 24, 2024

Please read tutorials and books about cron expressions. You can do this with 0,5,10,15,20,25,30,35,40,45,50,55 * * * *. Please use Google before opening an issue.

from cron.

mrlonely90 avatar mrlonely90 commented on July 24, 2024

Thanks, I just finded the solution.
I'm sorry to bother you

from cron.

Related Issues (20)

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.