Open GoogleCodeExporter opened 9 years ago
Here is an example:
I created a light-weight activity that starts up a python script. This script
logs every second, and I simply tailed the log to see when the python script
stopped responding.
In the first test I had it logging to stdout and to a file. The activity logged
to the file for 76 seconds and then stopped. I let it run for 11 minutes before
stopping the activity via I.S.
In the second test I had it only log to the file. I ran the test for almost 30
minutes and the script was logging the entire time.
In the third test I used print(..) to log one line to stdout at the beginning
of execution, then only logged every second to the file. I ran this test for 40
minutes and the log file was being written to the entire time.
Attached is the activity I created along with the logs created by the python
script for each test. script.py is the python script that I wrote, it has
comments indicating which lines were uncommented for the various tests. The log
files were being written to my controller root directory
(/Applications/interactivespaces/controller/example.log in this case). I am on
OSX 10.7.5 using I.S. 1.4.0
Controller log showing the activity being re-uploaded and started/stopped for
each test:
INFO 10:30:09,791 interactivespaces [pool-1-thread-33] - Activity
interactivespaces.example.activity.native version 1.0.0 installed with uuid
acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:30:12,031 interactivespaces [pool-1-thread-41] - Starting up activity
acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:30:12,031 interactivespaces [pool-1-thread-41] - Attempting startup of
activity acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:30:12,107 interactivespaces [pool-1-thread-41] - Native activity
starting up /usr/bin/python
/Applications/interactivespaces/controller/controller/activities/installed/acd71
89c-8681-4a81-8589-c2ecae913259/install/script.py
INFO 10:41:30,439 interactivespaces [pool-1-thread-101] - Shutting down
activity acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:46:21,733 interactivespaces [pool-1-thread-33] - Activity
interactivespaces.example.activity.native version 1.0.0 installed with uuid
acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:46:24,720 interactivespaces [pool-1-thread-102] - Starting up activity
acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:46:24,720 interactivespaces [pool-1-thread-102] - Attempting startup
of activity acd7189c-8681-4a81-8589-c2ecae913259
INFO 10:46:24,721 interactivespaces [pool-1-thread-102] - Native activity
starting up /usr/bin/python
/Applications/interactivespaces/controller/controller/activities/installed/acd71
89c-8681-4a81-8589-c2ecae913259/install/script.py
INFO 11:14:57,999 interactivespaces [pool-1-thread-103] - Shutting down
activity acd7189c-8681-4a81-8589-c2ecae913259
INFO 11:17:35,650 interactivespaces [pool-1-thread-33] - Activity
interactivespaces.example.activity.native version 1.0.0 installed with uuid
acd7189c-8681-4a81-8589-c2ecae913259
INFO 11:17:37,971 interactivespaces [pool-1-thread-104] - Starting up activity
acd7189c-8681-4a81-8589-c2ecae913259
INFO 11:17:37,972 interactivespaces [pool-1-thread-104] - Attempting startup
of activity acd7189c-8681-4a81-8589-c2ecae913259
INFO 11:17:38,053 interactivespaces [pool-1-thread-104] - Native activity
starting up /usr/bin/python
/Applications/interactivespaces/controller/controller/activities/installed/acd71
89c-8681-4a81-8589-c2ecae913259/install/script.py
INFO 11:55:07,692 interactivespaces [pool-1-thread-105] - Shutting down
activity acd7189c-8681-4a81-8589-c2ecae913259
Original comment by quinkenn...@gmail.com
on 13 Feb 2013 at 5:07
Attachments:
Original issue reported on code.google.com by
br...@robotconscience.com
on 8 Feb 2013 at 8:18