Question: Cron Job Specification On Server

Cron Job Specification On Server

Hello team, recently I have problem with runing cron job. and I checked with my hosting provider they asked me to upgrade my package to a bigger PHP value on database. May I know the hosti

PV

Prom Vongchann

Asked
Hello team,

recently I have problem with runing cron job.
and I checked with my hosting provider they asked me to upgrade my package to a bigger PHP value on database.

May I know the hosting requirements or specification on PHP value to easily runing the cron job today and future?

Thank you
  • MS

    Mian Saleem

    Answered
    Hello,

    It all depends on your data. If you have huge data you will need bigger server. For normal use, 2GB VPS with 20GB SSD would be enough to get started.

    Thank you
  • PV

    Prom Vongchann

    Answered
    for the storage is doesn't mater. I have 300GB SSD storage with 3GB RAM.

    but the problem is when I cannot run cron job, then the hosting provider said I will need to upgrade package so I will need to buy bigger package so I can have higher limit of PHP value or setting in my database in order to run the cron job.

    that's why my previous question was asking about what is the requirments of PHP value to be able to run cron job well.

    actually I can say again that my hosting is big enough to store my data. can see on my screenshot.
  • MS

    Mian Saleem

    Answered
    Hello,

    Your server looks fine. Do you have big database? I mean many sales and other data. On what basis they suggest you the bigger server?

    You didn't mentioned about the problem. Can you provide details what happen when you run cron job? Do you get error ow what? Let me know the details so that I can suggest.

    Thank you
  • PV

    Prom Vongchann

    Answered
    the problem is when I run cronjob, all the cronjob tasks not performed.
    example:
    - reference number not reset
    - invoice number not reset
    - user login and etc

    as mentioned on the document guide.pdf there are serveral tasks will be done when crobjob.
    and reset reference number is very important for me, and that's why I have upgrade hosting and everything for it.

    but it looks the same, unlike before that I run cronjob then all tasks mentioned on document.pdf are performed and reset.

    so I am not sure if it is because of coding or because hosting.

    (please see my attachment about the tasks performed on the cron job vs the referenece number not reset )
  • PV

    Prom Vongchann

    Answered
    Hello,

    any update?
  • MS

    Mian Saleem

    Answered
    Hello,

    If cron job reset the reference, it will display as message as for users and database backup.

    You can check the order_ref table in your database and see the data column value. That's the day when the order reference was reset. The next try will be on next month/year depending your reference format.

    You can check your server php error logs or enable app logs by changing the `log_threshold` to 1 in `app/config/config.php` and visit the cron url. Lastly check the latest log file in the `app/logs/` folder.

    Thank you
  • PV

    Prom Vongchann

    Answered
    I will enable that and observe.

    one more question, how often could I run manually cronjob?
    because I need to reset my reference number, I don't want the reference number to be more than 1000 so if I keep a month to do so, it will be a big number.

    thanks
  • MS

    Mian Saleem

    Answered
    Hello,

    There is no option to reset for 1000 but only for the month. I see email errors in log. Please make sure that email settings are correct.

    Thank you
  • PV

    Prom Vongchann

    Answered
    **[Mian Saleem](/u/saleem)** so it means, even I hit the RUN CRON JOB manually and the data will also not reset? that seems not quite true, right?
  • PV

    Prom Vongchann

    Answered
    **[Mian Saleem](/u/saleem)** and again, you did not give me the requirement of php settings or server spec requirement to run this cron job, because this is my issue right now.
  • Login to Reply