-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcrontab_cluster
More file actions
44 lines (39 loc) · 1.87 KB
/
crontab_cluster
File metadata and controls
44 lines (39 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# This will NOT SOURCE .bashrc or .bash_profile or .profile
# as it is non-interactive
#
#
# I still don't get it. I just doesn't always run.
# Despite being set to run every 15 minutes, it only runs every 1:15?????? WTF?
#
# I have noticed that multiple instances of fcron continue to exist?
# Kinda like something is causing it to hang. Commenting these out
# until I can figure something out. Otherwise, just make it pop more
# and stop worrying about it.
#
# jwendt 12466 2452 0 08:55 ? 00:00:00 /usr/sbin/fcron -b
# jwendt 23180 2452 0 09:14 ? 00:00:00 /usr/sbin/fcron -b
#
# It is now my understanding that the cron job does not end until everything
# is completed, even those things run in the background. Until then
# /var/log/cron will say "process already running:" and not start it again.
# In theory, this is nice if you don't want multiple instances running.
# However, if you don't care, what can you do?
#
#
# It appears that having 2 entries in the crontab works.
# 80/hr. 500 in queue. ~6 hours. Run every 3 hours.
# */6 = 0,6,12,...
#
#0 */2 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
#0 1-23/2 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
#0 0,6,12,18 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
#0 3,9,15,21 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
#
# My prefered setup assuming that each job takes about an hour and 500 in the queue
# ( some of these hg19 blasts are taking over 3 hours. it'd be better
# to have a few more of these, but I'm just gonna let it go. )
#
0 0,6,12,18 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
0 2,8,14,20 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log
0 4,10,16,22 * * * ( . .bash_profile && simple_queue_cron.sh ) >> simple_queue_cron.log