Advertisement
Guest User

Untitled

a guest
Mar 11th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.28 KB | None | 0 0
  1.  p = {}
  2.                    s = ['get_config']
  3.           map_script = 'get_config'
  4.              timeout = 297
  5.                    x = <ManagedObject: sic0len77.zap.odeko.hard>
  6. ------------------------------------------------------------------------
  7. File: /usr/local/noc/cm/periodics/config_pull.py (Line: 87)
  8. Function: execute
  9.    80                 (Q(next_pull__lt=datetime.datetime.now()) | Q(next_pull__isnull=True)))
  10.    81             qs = Config.objects.filter(q).order_by("next_pull")
  11.    82             if self.concurrency:
  12.    83                 qs = qs[:self.concurrency]
  13.    84             objects = [o.managed_object for o in qs]
  14.    85             # @todo: smarter timeout calculation
  15.    86             task = ReduceTask.create_task(objects, reduce_config_pull, {},
  16.    87 ==>                                       "get_config", {}, self.timeout - 3)
  17.    88             return task.get_result(block=True)
  18.    89
  19.    90
  20. Variables:
  21.                   qs =
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.   Config = <class 'noc.cm.models.Config'>
  30. ------------------------------------------------------------------------
  31. File: /usr/local/noc/main/scheduler/periodic.py (Line: 74)
  32. Function: task_wrapper
  33.    67             t = datetime.datetime.now()
  34.    68             cwd = os.getcwd()
  35.    69             try:
  36.    70                 if task.periodic_name.startswith("pyrule:"):
  37.    71                     status = PyRule.call(task.periodic_name[7:],
  38.    72                                          timeout=task.timeout)
  39.    73                 else:
  40.    74 ==>                 status = task.periodic(task.timeout).execute()
  41.    75             except:
  42.    76                 error_report()
  43.    77                 status = False
  44.    78             logging.info(u"Periodic task=%s status=%s" % (unicode(task),
  45.    79                                             "completed" if status else "failed"))
  46.    80             # Current path may be implicitly changed by periodic. Restore old value
  47. Variables:
  48.                 self = <PeriodicScheduler(Thread-1, started daemon 34490205888)>
  49.                 task = <Schedule: cm.config_pull:Any>
  50.                  cwd = '/usr/local/noc'
  51.                    t = datetime.datetime(2013, 3, 11, 11, 12, 36, 817904)
  52. ------------------------------------------------------------------------
  53. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement