MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _enqueue_startup_refresh

Method _enqueue_startup_refresh

apps/plugins/apps.py:76–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self._enqueue_startup_refresh()
75
76 def _enqueue_startup_refresh(self):
77 from dispatcharr.app_initialization import should_skip_initialization
78 if should_skip_initialization():
79 return
80 try:
81 from .tasks import refresh_plugin_repos
82 refresh_plugin_repos.apply_async(countdown=10)
83 except Exception:
84 import logging
85 logging.getLogger(__name__).debug(
86 "Could not enqueue startup plugin repo refresh (Celery may not be ready yet)"
87 )
88
89 def _setup_repo_refresh_schedule(self):
90 from dispatcharr.app_initialization import should_skip_initialization

Callers 1

readyMethod · 0.95

Calls 1

Tested by

no test coverage detected