cobweb-launcher 0.1.4__tar.gz → 0.1.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/PKG-INFO +1 -1
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/distributed/models.py +3 -3
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/single/models.py +3 -4
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/utils.py +1 -1
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/PKG-INFO +1 -1
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/setup.py +1 -1
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/LICENSE +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/README.md +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/bbb.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/oss_db.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/redis_db.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/scheduler/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/scheduler/default.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/scheduler/textfile.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/storer/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/storer/console.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/storer/loghub.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/storer/redis.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/db/storer/textfile.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/decorators.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/distributed/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/distributed/launcher.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/interface.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/log.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/setting.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/single/__init__.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/single/launcher.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb/task.py +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/requires.txt +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/top_level.txt +0 -0
- {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import time
|
2
2
|
from hashlib import md5
|
3
3
|
from cobweb import log, Queue, Seed
|
4
|
-
from utils import
|
4
|
+
from cobweb.utils import issubclass_cobweb_inf
|
5
5
|
|
6
6
|
# from pympler import asizeof
|
7
7
|
|
@@ -11,7 +11,7 @@ class Scheduler:
|
|
11
11
|
def schedule_seed(self, ready_seed_length, get_scheduler_lock, add_seed):
|
12
12
|
|
13
13
|
inf_name = "SchedulerInterface"
|
14
|
-
if not
|
14
|
+
if not issubclass_cobweb_inf(self.__class__, inf_name):
|
15
15
|
raise Exception("not have schedule function!")
|
16
16
|
|
17
17
|
if self.__class__.__name__ == "Default":
|
@@ -107,7 +107,7 @@ class Storer:
|
|
107
107
|
def store_task(self, stop, last, reset_seed, set_storer):
|
108
108
|
|
109
109
|
inf_name = "StorerInterface"
|
110
|
-
if not
|
110
|
+
if not issubclass_cobweb_inf(self.__class__, inf_name):
|
111
111
|
return None
|
112
112
|
|
113
113
|
if not getattr(self, "store", None):
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import time
|
2
2
|
from cobweb import log, Queue, Seed
|
3
|
-
from utils import
|
4
|
-
|
3
|
+
from cobweb.utils import issubclass_cobweb_inf
|
5
4
|
# from pympler import asizeof
|
6
5
|
|
7
6
|
|
@@ -10,7 +9,7 @@ class Scheduler:
|
|
10
9
|
def schedule_seed(self, ready_seed_length, get_scheduler_lock, add_seed):
|
11
10
|
|
12
11
|
inf_name = "SchedulerInterface"
|
13
|
-
if not
|
12
|
+
if not issubclass_cobweb_inf(self.__class__, inf_name):
|
14
13
|
raise Exception("not have schedule function!")
|
15
14
|
|
16
15
|
if self.__class__.__name__ == "Default":
|
@@ -102,7 +101,7 @@ class Storer:
|
|
102
101
|
def store_task(self, stop, last, reset_seed, del_seed):
|
103
102
|
|
104
103
|
inf_name = "StorerInterface"
|
105
|
-
if not
|
104
|
+
if not issubclass_cobweb_inf(self.__class__, inf_name):
|
106
105
|
return None
|
107
106
|
|
108
107
|
if not getattr(self, "store", None):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cobweb-launcher-0.1.4 → cobweb-launcher-0.1.5}/cobweb_launcher.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|