<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,17 +14,29 @@ from lightmon import config
 from lightmon import jobs
 
 class RunningJob(object):
+    &quot;&quot;&quot;
+    A job that is running in memory
+    &quot;&quot;&quot;
+
     def __init__(self, job):
         self.job = job
         self.running_since = time.time()
         self.thread = None
 
     def start(self):
-        thread = threading.Thread(target=self.job.run,
+        &quot;Start a new job as a thread&quot;
+        thread = threading.Thread(target=self.job.start,
                                   name=self.job.name)
         self.thread = thread
         thread.start()
 
+    def stop(self):
+        &quot;&quot;&quot;
+        Kills a thread but first tries to free all the resources that have been
+        locked within the thread
+        &quot;&quot;&quot;
+        raise NotImplementedError
+
 
 class Client(object):
     &quot;&quot;&quot;
@@ -62,7 +74,7 @@ class Client(object):
         for runjob in self.runjobs:
             if (now - runjob.running_since) &gt; MAX_CHECK_EXECUTION_TIME:
                 # thread has exceeded execution time
-                pass
+                runjob.stop()
 
         # reschedule ourselves
         self.scheduler.enter(config.SELF_CHECK_EVERY, 1, self.controller, ())</diff>
      <filename>lightmon/client/client.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e7b1be1005f92020ece4d71e5cc3abe4e273d8be</id>
    </parent>
  </parents>
  <author>
    <name>Ivan Giuliani</name>
    <email>giuliani.v@gmail.com</email>
  </author>
  <url>http://github.com/kratorius/lightmon/commit/be5233e009fa2bf4c37bf94c288a2e2d93dae776</url>
  <id>be5233e009fa2bf4c37bf94c288a2e2d93dae776</id>
  <committed-date>2009-11-06T14:56:43-08:00</committed-date>
  <authored-date>2009-11-06T14:56:43-08:00</authored-date>
  <message>Added the stop mechanism (not done yet) to the RunningJob</message>
  <tree>617cfe83f1f83343f47758e4ef81cf745475c103</tree>
  <committer>
    <name>Ivan Giuliani</name>
    <email>giuliani.v@gmail.com</email>
  </committer>
</commit>
