(self)
| 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 |
no test coverage detected