Comments (7)
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.
Thanks so much!
from cron.
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.
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.
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.
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.
Thanks, I just finded the solution.
I'm sorry to bother you
from cron.
Related Issues (20)
- Are tests working? HOT 2
- Incompatibility with Laravel 8, 9 HOT 1
- Exception with two closures on the same line of code HOT 3
- Symfony\Component\Console\Helper\HelperSet->get('table') HOT 3
- usage question: loading jobs from database HOT 3
- command cron:run/list error HOT 1
- stop cronjob run during beforeRun event HOT 3
- Cron job running only one time HOT 3
- Pull request #80 not in composer package HOT 3
- trying to understand why I should use this over Laravel's built-in scheduler HOT 2
- Which user should run cron HOT 2
- Laravel 5.4 support HOT 3
- PHP Fatal error: Class 'App\Providers\Cron' not found in C:\xampp\htdocs\isend\blog\app\Providers\AppServiceProvider.php on line 33 HOT 3
- laravel5.2.45 install failed HOT 2
- passing variable to the function parameter before adding a cron HOT 5
- Have Undefined index while run the cron job!!! HOT 3
- Php artisan cron:run Not working HOT 13
- Can't use `artisan route:cache` because the built-in cron route uses a closure HOT 5
- [Laravel 5.6] Ambiguous class resolution warning HOT 10
- doesn't work with Laravel 5.8 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron.