CheeseAPI 2.0.6b1__tar.gz → 2.0.6b2__tar.gz

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.
@@ -16,10 +16,10 @@ class Task:
16
16
  for key, value in data.items():
17
17
  if key == '_queue':
18
18
  if value:
19
- value = multiprocessing.Queue()
19
+ value = multiprocessing.get_context('spawn').Queue()
20
20
  value.put(None)
21
21
  else:
22
- value = multiprocessing.Queue()
22
+ value = multiprocessing.get_context('spawn').Queue()
23
23
  elif key == 'first_run_timer':
24
24
  value = datetime.datetime.fromtimestamp(value) if value else None
25
25
  elif key == '_last_run_timer':
@@ -67,7 +67,7 @@ class Task:
67
67
  self._last_run_time: float | None = None
68
68
  self._run_num: int = 0
69
69
  self._handler: threading.Thread | multiprocessing.Process | asyncio.Task | None = None
70
- self._queue = multiprocessing.Queue()
70
+ self._queue = multiprocessing.get_context('spawn').Queue()
71
71
 
72
72
  def __getstate__(self) -> tuple[None, dict[str, any]]:
73
73
  state = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CheeseAPI
3
- Version: 2.0.6b1
3
+ Version: 2.0.6b2
4
4
  Summary: 一款web协程框架
5
5
  Project-URL: Source, https://github.com/CheeseUnknown/CheeseAPI
6
6
  Author-email: Cheese Unknown <cheese@cheese.ren>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "CheeseAPI"
7
- version = "2.0.6-beta.1"
7
+ version = "2.0.6-beta.2"
8
8
  description = "一款web协程框架"
9
9
  readme = "README.md"
10
10
  license-files = { paths = [ "LICENSE" ] }
File without changes
File without changes
File without changes