Comments (9)
Can you show me the output of scheduled:summary
?
from dispatcher.
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
| Environment(s) | Name | Args/Opts | Minute | Hour | Day of Month | Month | Day of Week | Run as |
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
| * | populate:curr-rates | | 0 | 9 | * | * | * | |
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
from dispatcher.
That summary couldn't have been generated by the PHP code you provided.
from dispatcher.
oh yes,
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
| Environment(s) | Name | Args/Opts | Minute | Hour | Day of Month | Month | Day of Week | Run as |
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
| * | populate:curr-rates | | 17 | 4 | * | * | * | |
+----------------+---------------------+-----------+--------+------+--------------+-------+-------------+--------+
from dispatcher.
hmm, digging deep found something peculiar. My timezone is +5.30 in php & l4 so referencing mtdowling/cron-expression#55
commented out in HoursField.php
//$date->setTimezone(new DateTimeZone('UTC'));
this makes 'Invalid CRON expression' disappear, but now its getting stuck at
Inv.Arg.Excp - 'There are no commands defined in the xyz namespace'
manually running 'scheduled:run' / individual commands from ssh works,
even running individual artisan commands from cron works also, but not from, when 'dispatcher:run' is 'cronned' ;)
also #68 didnt worked.
dispatcher cron command (/usr/local/bin/php is cli-php; using cPanel):
cd /home/usr/pub_html/app && /usr/local/bin/php artisan scheduled:run 1>> /dev/null 2>&1
individual artisan command works:
cd /home/usr/pub_html/app && /usr/local/bin/php artisan footest 1>> /dev/null 2>&1
from dispatcher.
Running scheduled:run --debug from ssh gave
footest: /usr/bin/env php /home/usr/public_html/acme/artisan footest > /dev/null &
it helped to figure out that its using 'php' to run commands which is cgi version, but in cPanel cli is at '/usr/local/bin/php', so yeah all it needs is 'config::executable' path for php ie. #75
nailed (except 'cron-expression''s timezone bug ;), thanks @bkuhl 👍
from dispatcher.
I'm glad you got it working... there's a lot that went on in your last few comments so I'd like to clarify to be sure I understand what the solution is.
Are you saying that your sole fix was to customize the config::executable
path to use /usr/bin/env
?
from dispatcher.
@bkuhl before that i had to fix HoursField.php because it was causing 'Impossible CRON Expression'
from dispatcher.
@bkuhl, I'm having the exact same issue.
Laravel 4.2
"indatus/dispatcher": "1.4.*"
Forge Server with Linode.
Log:
{"message":"Impossible CRON expression","context":[],"level":400,"level_name":"ERROR","channel":"production","datetime":{"date":"2015-01-22 02:59:01.567212","timezone_type":2,"timezone":"EST"}
Summary:
+----------------+-----------------------------------+-----------+--------+------+--------------+-------+-------------+------+
| Environment(s) | Name | Args/Opts | Minute | Hour | Day of Month | Month | Day of Week | Run as |
+----------------+-----------------------------------+-----------+--------+------+--------------+-------+-------------+------+
| * | cron:update_campaign_clicks_count | | 0 | 0 | * | * | * | |
+----------------+-----------------------------------+-----------+--------+------+--------------+-------+-------------+--------+
Cron:
/usr/bin/php /home/forge/domain.com/artisan scheduled:run 1>> /dev/null 2>&1
Any help without hacking the package would be highly appreciated.
from dispatcher.
Related Issues (20)
- running schedled:run from controller HOT 6
- different timings for different options of a command HOT 1
- api everyDays ? HOT 1
- Deploy on Windows. HOT 4
- --env does not get passed into the scheduled commands HOT 3
- Ask : i wanna use schedule for run php codes HOT 1
- Doesn't propagate --env flag HOT 5
- Different times in different environments HOT 2
- Hours set, will it run every minute and second? HOT 1
- php artisan schedule:summary Args/Opts column is blank? HOT 9
- removing command file causes scheduled:summary to crash HOT 1
- What sort of dependencies for Laravel does this project have? HOT 2
- Question: Laravel 5.x schedule:summary HOT 2
- Every Hours not running properly HOT 1
- [Feature] Task timeout HOT 1
- [Feature] pcntl_fork in leui of exec HOT 1
- Call to undefined method [package] HOT 1
- Class 'Orchestra\Testbench\TestCase' not found HOT 13
- Sleeping processes not being killed? HOT 5
- ERROR: exception 'InvalidArgumentException' with message 'Command "command:check" is not defined. HOT 3
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 dispatcher.