diff --git a/InvenTree/InvenTree/tasks.py b/InvenTree/InvenTree/tasks.py index 49a4049be5..a53fd567ab 100644 --- a/InvenTree/InvenTree/tasks.py +++ b/InvenTree/InvenTree/tasks.py @@ -126,8 +126,8 @@ def heartbeat(): try: from django_q.models import Success - logger.info("Could not perform heartbeat task - App registry not ready") except AppRegistryNotReady: # pragma: no cover + logger.info("Could not perform heartbeat task - App registry not ready") return threshold = timezone.now() - timedelta(minutes=30) diff --git a/InvenTree/plugin/events.py b/InvenTree/plugin/events.py index bea1fafb25..66c6267d53 100644 --- a/InvenTree/plugin/events.py +++ b/InvenTree/plugin/events.py @@ -2,8 +2,10 @@ Import helper for events """ -from plugin.base.event.events import trigger_event +from plugin.base.event.events import process_event, register_event, trigger_event __all__ = [ + 'process_event', + 'register_event', 'trigger_event', ]