MCPcopy Index your code
hub / github.com/pyload/pyload / periodical_task

Method periodical_task

module/plugins/hooks/UpdateManager.py:70–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self.pyload.api.restart()
69
70 def periodical_task(self):
71 if self.pyload.debug:
72 if self.config.get('reloadplugins'):
73 self.autoreload_plugins()
74
75 if self.config.get('nodebugupdate'):
76 return
77
78 if self.config.get('checkperiod') and \
79 time.time() - max(self.CHECK_INTERVAL, self.config.get('checkinterval') * 60 * 60) > self.info['last_check']:
80 self.update()
81
82 if self.do_restart is True:
83 if self.pyload.threadManager.pause and not self.pyload.api.statusDownloads():
84 self.pyload.api.restart()
85
86 #: Deprecated method, use `autoreload_plugins` instead
87 @Expose

Callers

nothing calls this directly

Calls 5

autoreload_pluginsMethod · 0.95
updateMethod · 0.95
getMethod · 0.45
statusDownloadsMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected