This is an automated notification sent by LCG Savannah.
It relates to:
task #7868, project CDS Invenio
==============================================================================
OVERVIEW of task #7868:
==============================================================================
URL:
<http://savannah.cern.ch/task/?7868>
Summary: Dropping UNIX signal usage in bibsched/bitasks?
Project: CDS Invenio
Submitted by: skaplun
Submitted on: 2008-09-19 08:39
Should Start On: 2008-09-19 00:00
Should be Finished on: 2008-09-19 00:00
Category: BibSched
Priority: 3 - Low
Status: None
Privacy: Private
Percent Complete: 0%
Assigned to: skaplun
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
UNIX Signals seems not to work very nicely in Python. They interrupt Python
I/O and other nasty things.
Now that we have task_sleep_now_if_required, we can make this function to
check for other source of communication like existence of file on the
filesystem.
Moreover bibtasks communicating back to bibsched via signals seems to make
bibsched crashing if it is using signal at the same time:
>>> Registered exception
2008-09-18 22:06:30 -> IOError: [Errno 4] Interrupted system call
>>> User details
No client information available
>>> Traceback details
Forced traceback (most recent call last)
File "/opt/cdsweb/bin/bibsched", line 35, in ?
main()
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 1262,
in main
{'start': start,
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 1108,
in start
sched.watch_loop()
Traceback (most recent call last):
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 967, in
watch_loop
if _refresh_tasks or self.handle_row(task_status, *row):
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 839, in
handle_row
if not self.task_really_running_p(proc, task_id):
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 827, in
task_really_running_p
if not get_task_pid(proc, task_id):
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 100, in
get_task_pid
return get_my_pid(task_name, str(task_id))
File "/usr/lib64/python2.3/site-packages/invenio/bibsched.py", line 83, in
get_my_pid
answer = string.strip(os.popen(COMMAND).read())
IOError: [Errno 4] Interrupted system call
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
2195 | -SUB-
==============================================================================
This item URL is:
<http://savannah.cern.ch/task/?7868>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/