onestep 0.1.5__py3-none-any.whl → 0.1.6__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.

Potentially problematic release.


This version of onestep might be problematic. Click here for more details.

onestep/broker/cron.py CHANGED
@@ -19,10 +19,13 @@ class CronBroker(BaseLocalBroker):
19
19
  self.kwargs = kwargs
20
20
  self._scheduler()
21
21
 
22
+ def _real_task(self):
23
+ self.queue.put_nowait(self.kwargs)
24
+
22
25
  def _scheduler(self):
23
26
  if self.next_fire_time <= datetime.now():
24
27
  self.next_fire_time = self.itr.get_next(datetime)
25
- self.queue.put_nowait(self.kwargs)
28
+ self._real_task()
26
29
 
27
30
  threading.Timer(interval=1, function=self._scheduler).start()
28
31
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: onestep
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary:
5
5
  Author: miclon
6
6
  Author-email: jcnd@163.com
@@ -1,7 +1,7 @@
1
1
  onestep/__init__.py,sha256=IUElKqBNhQLtKYQHwYdk67bLeavgb-D9hX0EhY1vdf0,1055
2
2
  onestep/broker/__init__.py,sha256=_u2FH9lFKcqau4tTFuj4V3NaVEH0EjImIedl_nlrU7U,221
3
3
  onestep/broker/base.py,sha256=HFZ4d0zi5DvwksZDIB7h01kwvY4f8wsEjNbht9uTt7U,4310
4
- onestep/broker/cron.py,sha256=8N5eAZV6u-0JQesMqc_B7AvMBlMHwaWVgKoWewkf4Uo,904
4
+ onestep/broker/cron.py,sha256=D782X0bY3AxeL2-NCSEUPkSh591VMgQUYwYaH8c9ZT8,957
5
5
  onestep/broker/memory.py,sha256=ILDfYCbMuMmYcZW09jVCdkAg3IQcC-dHkGHIgd8Wh4Q,151
6
6
  onestep/broker/rabbitmq.py,sha256=gatzaaRPANaMWVgc9zyupFVTM7xuDWm9GjmFeukWarY,1997
7
7
  onestep/broker/webhook.py,sha256=zt__4Lp7jX8B3xo2v64DAqLGnd8aV7ElBsgQZqN2i1w,2144
@@ -17,6 +17,6 @@ onestep/state.py,sha256=UVG91CXCabU64X6qgcO0S7RzbBP8ut0ID7aTMww94us,618
17
17
  onestep/store/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  onestep/store/rabbitmq.py,sha256=if3fXp_CBK-b4i0Qsb4owfiPPYtQ1biF2OFU6iTRRAE,4170
19
19
  onestep/worker.py,sha256=SsowMZSav0f5ocL5RfnwdF2DlN0UNvxO4RK574OWrU0,3517
20
- onestep-0.1.5.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
21
- onestep-0.1.5.dist-info/METADATA,sha256=-VdiE2QJVKclDOZE_5zULS6JyQYibKEhb9XgKSGokJA,1992
22
- onestep-0.1.5.dist-info/RECORD,,
20
+ onestep-0.1.6.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
21
+ onestep-0.1.6.dist-info/METADATA,sha256=CajYNhwdtMzZv1qTWtNae67XkCLO9P6gaP6iM3VjshE,1992
22
+ onestep-0.1.6.dist-info/RECORD,,