- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- number of cron jobs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:06 AM
тАО08-03-2009 05:06 AM
Assume a script is scheduled through cron every 5mins and it is getting hung. In this case will cron waits for its completion to remove it from the job queue or it will just keep adding the jobs in the queue?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:19 AM
тАО08-03-2009 05:19 AM
Solutioncron will keep running what it is told to run.
To avoid this the script being run can check ps output and self terminate.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:20 AM
тАО08-03-2009 05:20 AM
Re: number of cron jobs
cron can run muliple jobs at same time so all the jobs will run as scheduled.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:22 AM
тАО08-03-2009 05:22 AM
Re: number of cron jobs
"All other queues can have up to 100 jobs running simultaneously. They will be run with a nice value of 2, and if a job cannot be run because too many other jobs are running, cron will wait 60 seconds before trying again to run it."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:30 AM
тАО08-03-2009 05:30 AM
Re: number of cron jobs
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:34 AM
тАО08-03-2009 05:34 AM
Re: number of cron jobs
thanks for all ur reply.
I am looking for only the number of jobs in the queue..Does cron waits for a script to finish so that it can reduce the count in the cron queue or it just submits the job and leave it irrespective whether it finishes or not..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 05:39 AM
тАО08-03-2009 05:39 AM
Re: number of cron jobs
See the man page for queuedefs (4):
"All other queues (aside from at and batch) can have up to 100 jobs running simultaneously. They will be run with a nice value of 2, and if a job cannot be run because too many other jobs are running, cron will wait 60 seconds before trying again to run it."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 06:52 AM
тАО08-03-2009 06:52 AM
Re: number of cron jobs
I understood the above reply..
to be simple - when the job started using cron,the queue size will be 1..will it be 1 until it completes or it just submits the job and make the queue size to 0..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2009 08:39 PM
тАО08-03-2009 08:39 PM
Re: number of cron jobs
Any reply from ur end..
I want to know this because one of our server suddenly throwing messages "c queue message reached limit" ..I am sure nothing changed in crontab but could see more ftp sessions got hung..that's the reason i want to know will those jobs be in the queue till it completes or just clear the queue as log it is submitted..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 01:21 AM
тАО08-04-2009 01:21 AM
Re: number of cron jobs
Yes, it waits until it is done, the only important measure.