Adds psutil support for max_rss on other platforms

This commit is contained in:
Ilan Steemers
2020-07-05 18:18:43 +02:00
parent b16878f36f
commit c94f2cb816
5 changed files with 31 additions and 22 deletions
+1 -12
View File
@@ -3,15 +3,4 @@ VERSION = (1, 3, 1)
default_app_config = "django_q.apps.DjangoQConfig"
__all__ = ["conf", "cluster", "models", "tasks", "croniter"]
# Optional Imports
try:
from croniter import croniter
except ImportError:
croniter = None
try:
import resource
except ModuleNotFoundError:
resource = None
__all__ = ["conf", "cluster", "models", "tasks"]