-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cron job on web hosting with restrictions #1603
Comments
The cycle will probably not fire when you set it to every hour. I have a few cards to make this process easier because frankly, the tools provided by Laravel do not work. Firing up the entire site every minute is not very resource-friendly. I hope to come up with a new cron job (next release, perhaps the one after that) that will only need to be fired once a day to work. I am not sure if I can "embed" them in a PHP file, but there might be trick there as well. |
Ok, thanks for the answer. I have 20 recurring transactions so I would be very happy if i could get a workaround since you release a modified feature. Is there a way to generate [a batch of] recurring transactions « manually », without the scheduler? i.e using another artisan command or one of the API end-point. |
No there's nothing else available yet. I've focused on releasing the actual feature first. I'm afraid they'll have to wait a bit before they can be fired. |
Just for the record : i don’t expect the solution to come from you, i am willing to code something (i know php) if necessary. I just need some advise|help to identify a way to get a workaround. |
This is all the code you need. If you place at this exact spot, you can do You can even make a IFTTT recipe out of it. |
Thanks for the hack James 👍 |
No problem. I'm working on a special URL that does the same. The only difference will be that it requires the "command line token" from |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The new release has a better cron job function: https://firefly-iii.readthedocs.io/en/latest/installation/cronjob.html |
Hi James, The new dedicated url Just a question: the curl command returns me a webpage saying i don't have permission to access Is it the expected behaviour ? Does it trigger recurring transactions anyway ?
|
There's no difference from Firefly III's perspective. I've tested it and curl seems to work. Perhaps your webserver blocks cURL requests. It's a common enough thing. Try |
Hi James, I'm running my FF3 locally. I just upgraded to 4.7.9. Whether I run the cronjob or the curl, I got the message:
Which log files is it talking about? Because there is nothing new in firefly-iii/storage/logs Debug information generated at 2019-01-29 12:08:46 UTC for Firefly III version 4.7.9.
|
The job will not fire until there is something to do. I expect it will give you a response after about a day. |
Still, I runned it every other day and I got the same message:
I have a recurring transaction set on the 1st and it did not fire. |
Wait, do you run it every day or do you skip a day? |
I run it manually some days when I thing about it. So by your question I guess that's not the way intended. I thought that it would catch up the transaction when the script did not run everyday. Oops, sorry to have a particular use case not covered by the cron job. |
Sorry, Firefly III really needs a daily occurring cron job. I’ll think about a manual mode but I can’t give it a lot of priority I’m afraid. |
I am running Firefly III version 4.7.5.1
Hello,
I use several recurring transactions so I need to set up the cron job. My firefly instance run on a web hosting on which I can set cron job but with some restrictions:
Regarding the php file, is it possible to directly call one of the Laravel files instead of using the artisan cmdline?
Regarding the cycle, is it an issue to set hourly execution?
Thanks
The text was updated successfully, but these errors were encountered: