I have run one cron file but it takes to much time and it's not run proper and gives me "504 gateway timeout nginx" error. How can I find a solution for this?
Asked
Active
Viewed 924 times
0
-
Dont run your cron jobs via HTTP calls, why you not using a proper cron job? XY problem? – Lawrence Cherone Sep 21 '17 at 05:17
-
i have use cron job using server – Er Nilay Parekh Sep 21 '17 at 06:05
-
You can do that by making sure that in your php script you have `set_time_limit(0)` and increase `fastcgi_read_timeout` in your nginx config and then try – Tarun Lalwani Sep 21 '17 at 08:13
-
can you please tell me from where can i increse fastcgi_read_timeout ? – Er Nilay Parekh Sep 21 '17 at 09:50