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
Jobs never run #2
Comments
Can you provide me the output of |
@agentphoenix, thanks for taking the time to shoot me a screenshot of what you see in the output. Based on the output it looks like you're using I'll have to put some thought into how to handle |
It doesn't actually matter if I just return I'm just at a loss for how to get this to work without manually setting the cron jobs like before. |
Can you provide me the entry you have in your crontab? The |
Yeah, I figured that out, so I pulled it out early on so that it would throw errors. No errors are being thrown now though, it just never runs. My crontab is (path to artisan truncated):
|
Can you show me the |
public function schedule(Schedulable $scheduler) { return $scheduler; } public function fire() { \File::append(public_path()."/test.txt", "test command ran\n"); \Log::info('Test command ran.'); } I know that the logging works right because when I run the command manually, it creates a line in the log and appends to the test text file. |
I created a fresh laravel project with nothing except a single command using the same schedule()/fire() as you have shown here. My command successfully runs and writes to the log files. I don't believe it's an issue with this package. |
Alright. I'll keep digging and see if I can find what might be causing the issue. Thanks! |
Sorry I couldn't be of more help... when you find the solution, please update this issue. |
I've just pushed version |
I've made a little headway with this. The first issue is that I think there's a step missing from the installation instructions. Once I realized there was a config file in the vendor directory, I ran a I put some debugging code in and here's what's happening as it steps through the process. Any insight you might be able to offer would be awesome! [2014-03-08 02:08:00] production.DEBUG: scheduled:run started [] [] [2014-03-08 02:08:00] production.DEBUG: php [...]/artisan tv:test & > /dev/null 2>&1 [] [] [2014-03-08 02:08:00] production.DEBUG: scheduled:run ended [] [] It's clearly building the command properly, but when it runs that command through |
Comment out this line from the package in the vendor directory and see if you get any output there. |
Success! Commenting out that line didn't reveal anything, but I dug deeper into the In order to get it to work locally, I had to create a symbolic link from the MAMP version of PHP to the system version. Once I did that, everything started working. I'm hoping this won't be an issue when it comes time to deploy this to a shared host, but now that I know what's happening, I'll know what to look for. Thanks for all your help. This is going to be an invaluable tool for many of my projects! |
Excellent, I'm glad you got it working! |
I've added a note about |
It's just strange that Thanks again for all your help with this. Been running some jobs through Dispatchers the last couple of days and it works like a charm! |
Thanks, glad to hear it was worth building :) On my mac, using the symbolic link method broke when the OS updated. So I added |
Interesting. I'll have to keep an eye out for that when the next software update comes out. Before adding the symbolic link, I'd added PHP to my path through my ZSH profile, but |
@agentphoenix, could you show me how did you use the @bkuhl Do you know how he might done that? Thanks in advance. |
Using |
I was really excited to see this come across Twitter today and started playing with it this afternoon. Unfortunately though, it doesn't look like it works at this point.
I created a simple Artisan task to add a message to the log file. I manually set up a cronjob to run every minute that called the specific command and it did as expected. Updated the job to run through Dispatcher and nothing ever happens. I can run the job manually, but no matter what I change (setting it to run every minute, setting it on a schedule, running the
scheduled:run
command manually, etc.), the job never runs.Let me know what you need from me to help debug what might be going on. Thanks for the package!
The text was updated successfully, but these errors were encountered: