Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi! i have problem #34

Closed
noggong opened this issue Aug 26, 2014 · 2 comments
Closed

hi! i have problem #34

noggong opened this issue Aug 26, 2014 · 2 comments
Assignees
Labels

Comments

@noggong
Copy link

noggong commented Aug 26, 2014

hi
I use liebig/cron

it worked good this morning.
but now not working

--this situation

php artisan cron:list

+----------+------------+-----------+
| Jobname | Expression | Activated |
+----------+------------+-----------+
| example1 | * * * * * | Enabled |
| example3 | * * * * * | Enabled |
| example2 | 28 * * * * | Enabled |
+----------+------------+-----------+

but

php artisan cron:run

+------------+---------+----------+--------+------+
| Run date | In time | Run time | Errors | Jobs |
+------------+---------+----------+--------+------+
| 1409020245 | -1 | -1 | 0 | 0 |
+------------+---------+----------+--------+------+

always keep to occur
help me please

@liebig
Copy link
Owner

liebig commented Aug 31, 2014

Hi, it seems that you have a problem with the prevent overlapping function. Please have a look in your log files and disable the overlapping protection with the command Cron::setDisablePreventOverlapping();

From the README:
Cron is not running properly and returns runtime and inTime with value -1

By default Cron prevents overlapping. This means that only one Cron instance will run at the same time. If another instance is called, Cron will not run and will return the runtime and inTime parameter with the value -1. On some Windows machines the deletion of the lock file fails and you have to disable this feature. Please have a look at the prevent overlapping section.

@liebig liebig self-assigned this Aug 31, 2014
@liebig
Copy link
Owner

liebig commented Sep 11, 2014

Closed due to inactivity.

@liebig liebig closed this as completed Sep 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants