Notifications
Clear all

[Solved] Cron Job Clarity

5 Posts
2 Users
2 Reactions
69 Views
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

In the docs I see the following reference to setting up a cron job and was wondering what the "-p cron -t" options actually do or mean?

Can't seem to find anything when searching or googling about them.

0 * * * * usr/local/php5/bin/php /home/your_username/public_html/index.php -p cron -t hourly
 
Posted : August 18, 2024 07:36
EnterpriseClassifieds
(@enterpriseclassifieds)
Posts: 46
Trusted Member
 

Those are custom parameters specific to Osclass, to inform it that a Cron is running.

PS: On Osclass Enterprise, the default internal Cron should function properly, so there's no need for an external one.

Enterprise Classifieds

 
Posted : August 19, 2024 12:56
nootkan reacted
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

Posted by: @enterpriseclassifieds

Those are custom parameters specific to Osclass, to inform it that a Cron is running.

PS: On Osclass Enterprise, the default internal Cron should function properly, so there's no need for an external one.

 

Thanks for the reply.  What does -p and -t stand for though.  Would like to know for my own knowledge?

 

Also curious why the minutely cron won't work with 3.8.1 or Enterprise Edition? Even the default cron only shows hourly, week, and monthly.

 

This post was modified 2 months ago by nootkan
 
Posted : August 20, 2024 21:15
EnterpriseClassifieds
(@enterpriseclassifieds)
Posts: 46
Trusted Member
 

@nootkan -p stands for Page, the page that triggers the Cron, and -t stands for Type, the type of Cron that is getting triggered (Hourly, Daily, Weekly).

 

Osclass was built to handle thousands of users and tens of thousands of listings, and with Cron being a resource intensive task (depending on its actions), running a minutely Cron would cause some servers (especially shared ones) to crash. Besides the high traffic a popular site would have, imagine hundreds of tasks being run every minute.

So I'm guessing that's why the original Osclass developer built-in only 3 types of Cron (Hourly, Daily, Weekly).

This is also the reason I didn't pursue to add other intervals. Better safe than sorry.

This post was modified 2 months ago by EnterpriseClassifieds

Enterprise Classifieds

 
Posted : August 21, 2024 00:33
nootkan reacted
(@nootkan)
Posts: 29
Eminent Member
Topic starter
 

Okay thanks for the clarification.  I agree about the traffic concerns which is why I wasn't too concerned with the minutely cron, just curious.

 
Posted : August 21, 2024 07:10