reykit 1.1.80__py3-none-any.whl → 1.1.82__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reykit/rbase.py +2 -0
- reykit/rlog.py +1 -1
- reykit/rschedule.py +3 -11
- {reykit-1.1.80.dist-info → reykit-1.1.82.dist-info}/METADATA +1 -1
- {reykit-1.1.80.dist-info → reykit-1.1.82.dist-info}/RECORD +7 -7
- {reykit-1.1.80.dist-info → reykit-1.1.82.dist-info}/WHEEL +0 -0
- {reykit-1.1.80.dist-info → reykit-1.1.82.dist-info}/licenses/LICENSE +0 -0
reykit/rbase.py
CHANGED
@@ -29,6 +29,7 @@ __all__ = (
|
|
29
29
|
'V',
|
30
30
|
'KT',
|
31
31
|
'VT',
|
32
|
+
'CallableT',
|
32
33
|
'Base',
|
33
34
|
'StaticMeta',
|
34
35
|
'ConfigMeta',
|
@@ -67,6 +68,7 @@ U = TypeVar('U') # Any.
|
|
67
68
|
V = TypeVar('V') # Any.
|
68
69
|
KT = TypeVar('KT') # Any dictionary key.
|
69
70
|
VT = TypeVar('VT') # Any dictionary value.
|
71
|
+
CallableT = TypeVar('CallableT', bound=Callable) # Any callable.
|
70
72
|
|
71
73
|
|
72
74
|
class Base(object):
|
reykit/rlog.py
CHANGED
reykit/rschedule.py
CHANGED
@@ -93,10 +93,6 @@ class Schedule(Base):
|
|
93
93
|
def pause(self) -> None:
|
94
94
|
"""
|
95
95
|
Pause scheduler.
|
96
|
-
|
97
|
-
Parameters
|
98
|
-
----------
|
99
|
-
task : Task instance.
|
100
96
|
"""
|
101
97
|
|
102
98
|
# Pause.
|
@@ -106,10 +102,6 @@ class Schedule(Base):
|
|
106
102
|
def resume(self) -> None:
|
107
103
|
"""
|
108
104
|
Resume scheduler.
|
109
|
-
|
110
|
-
Parameters
|
111
|
-
----------
|
112
|
-
task : Task instance.
|
113
105
|
"""
|
114
106
|
|
115
107
|
# Resume.
|
@@ -169,7 +161,7 @@ class Schedule(Base):
|
|
169
161
|
}
|
170
162
|
with self.database.connect() as conn:
|
171
163
|
conn = self.database.connect()
|
172
|
-
conn.
|
164
|
+
conn.execute.insert(
|
173
165
|
(self.db_names['base'], self.db_names['base.schedule']),
|
174
166
|
data
|
175
167
|
)
|
@@ -189,7 +181,7 @@ class Schedule(Base):
|
|
189
181
|
'id': id_,
|
190
182
|
'status': 2
|
191
183
|
}
|
192
|
-
self.database.
|
184
|
+
self.database.execute.update(
|
193
185
|
(self.db_names['base'], self.db_names['base.schedule']),
|
194
186
|
data
|
195
187
|
)
|
@@ -201,7 +193,7 @@ class Schedule(Base):
|
|
201
193
|
'id': id_,
|
202
194
|
'status': 1
|
203
195
|
}
|
204
|
-
self.database.
|
196
|
+
self.database.execute.update(
|
205
197
|
(self.db_names['base'], self.db_names['base.schedule']),
|
206
198
|
data
|
207
199
|
)
|
@@ -1,17 +1,17 @@
|
|
1
1
|
reykit/__init__.py,sha256=V86CHqPAAVkooVx3_QIOKpDIFVneQCTTSwfJ-uWgBno,788
|
2
2
|
reykit/rall.py,sha256=7Hip02YOkIDm3_xkoSDjvvYV2LhdBV2r4UKzWWnIfIo,628
|
3
|
-
reykit/rbase.py,sha256=
|
3
|
+
reykit/rbase.py,sha256=6JSyAzVWxh6UdJdEmD7a7DDfmjEfHkO66K-Uax2Fxv0,21782
|
4
4
|
reykit/rdata.py,sha256=NmOY_h4w2PY5xBbYNmOnb55w7PGsvvCzOBnxPjQ08qw,10293
|
5
5
|
reykit/remail.py,sha256=l4HGKXdfHNBxyBT3YxeZyQhfecbElqTqSAGInwWhap8,6723
|
6
6
|
reykit/rimage.py,sha256=lNN2iMpvSMqh-nPTpxrA9yHy43EA5WoYdxKYhqPwMgk,6154
|
7
|
-
reykit/rlog.py,sha256=
|
7
|
+
reykit/rlog.py,sha256=_opEDQUQfhAuIoDg2iS7wFU3KqL-tdWMvtbnwhsuVk4,25747
|
8
8
|
reykit/rmonkey.py,sha256=Dj2GBzBDFXbo0Z-5f8Zep4dfbaIw1bo1FUmC31xvDuk,7929
|
9
9
|
reykit/rnet.py,sha256=YvoLffHcMK43GMoXKQXDTHFP9fiVTH5uzmN-glRBuFY,17772
|
10
10
|
reykit/rnum.py,sha256=VKICD64mEfiStAGWaxg3kzQjf7TTqiSBNe9LCpM9MLo,3623
|
11
11
|
reykit/ros.py,sha256=O5xAqVR1S5pGU-ryKh6JFN9ztO-GNMl_83fWoh75zOY,47873
|
12
12
|
reykit/rrand.py,sha256=4VwooITgox54_GonELcJfcIpStDi-UJchpnyWKnyeIA,8606
|
13
13
|
reykit/rre.py,sha256=1qva7xatKVE9qC2j7IujjXSM59qxHWwTYpiizFFQ8Xo,6024
|
14
|
-
reykit/rschedule.py,sha256=
|
14
|
+
reykit/rschedule.py,sha256=Xh5J8_5js-8yRXqOq4cjIlJEKuVAB4qme65D0zvwpLw,14694
|
15
15
|
reykit/rstdout.py,sha256=yesWo7wIGablpyAu-2J2Gw11Qp3GdQjGICTyIcvLyt4,8200
|
16
16
|
reykit/rsys.py,sha256=AP62KyN40flCeQJBclfJq8shachSAFT0LkVjiKsXkrw,24946
|
17
17
|
reykit/rtable.py,sha256=UQ-JlwjssMR3gY1iY-VGQEKQ5_BZabpJy6TL7Fx19c4,12200
|
@@ -22,7 +22,7 @@ reykit/rwrap.py,sha256=G4TL2GWUaW9DrCFRcsnDE1CwgdWeP2PnjQckheRx4p0,15095
|
|
22
22
|
reykit/rzip.py,sha256=BGEONswuBZxQ-zcgd_xp2fcvYesC9AmKaaXWvnT3bTI,3456
|
23
23
|
reykit/rdll/__init__.py,sha256=nLSb8onBm2ilyoxzpDzUeGfSCKwkLEesIhzK3LiJ8mk,701
|
24
24
|
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
25
|
-
reykit-1.1.
|
26
|
-
reykit-1.1.
|
27
|
-
reykit-1.1.
|
28
|
-
reykit-1.1.
|
25
|
+
reykit-1.1.82.dist-info/METADATA,sha256=nM6ORwzi2NppYsEg2PD0SPzDxuzXWC7tK-y6lxBhMDs,1872
|
26
|
+
reykit-1.1.82.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.82.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.82.dist-info/RECORD,,
|
File without changes
|
File without changes
|