setproctitle
is a nice library (Zarkov uses it) to set process names. We should use it to set each taskd instance's name to something nice (so it doesn't show up as just python or paster). Moreover, we could set title each time a job changes so we can easily see what is currently running. Possible name format: taskd:allura.tasks.mail_tasks.sendmail:509c56029c1040420e2d8487
Need to make sure that changing the process name doesn't break taskd_cleanup command. And at SourceForge, our
reactor
init script andmonit
.forge:tv/5328
The ticket to add
setproctitle
is here: https://trac.sdot.me/trac/siteops/ticket/53845. In the meantime you might need topip install
it manually.To see this working, I ran
top
, sorted by proc name and showing full cmd line. Kick off a task that will take a while (I did an SVN import). You'll see the proc name change in top, then change back when the task is finished.I discussed with wayned and he said this would not cause any problems for the init or monit scripts.