OpenOrchestrator 2.0.0rc2__py3-none-any.whl → 2.0.0rc3__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.
@@ -41,10 +41,9 @@ class Application():
41
41
 
42
42
  self._define_on_close()
43
43
 
44
- app.on_connect(self.update_loop)
45
- app.on_disconnect(app.shutdown)
44
+ app.on_startup(self.update_loop)
46
45
  app.on_exception(lambda exc: ui.notify(exc, type='negative'))
47
- ui.run(title="Orchestrator", favicon='🤖', native=False, port=port or get_free_port(), reload=False, show=show)
46
+ ui.run(title="Orchestrator", favicon='🐵', native=False, port=port or get_free_port(), reload=False, show=show)
48
47
 
49
48
  def update_tab(self):
50
49
  """Update the date in the currently selected tab."""
@@ -60,16 +59,9 @@ class Application():
60
59
  case 'Queues':
61
60
  self.q_tab.update()
62
61
 
63
- async def update_loop(self):
64
- """Update the selected tab on a timer but only if the page is in focus."""
65
- try:
66
- in_focus = await ui.run_javascript("document.hasFocus()")
67
- if in_focus:
68
- self.update_tab()
69
- except TimeoutError:
70
- pass
71
-
72
- ui.timer(10, self.update_loop, once=True)
62
+ def update_loop(self):
63
+ """Update the selected tab on a timer."""
64
+ ui.timer(10, self.update_tab)
73
65
 
74
66
  def _define_on_close(self) -> None:
75
67
  """Tell the browser to ask for confirmation before leaving the page."""
@@ -236,7 +236,7 @@ def run_process(trigger: Trigger) -> Job | None:
236
236
  conn_string = db_util.get_conn_string()
237
237
  crypto_key = crypto_util.get_key()
238
238
 
239
- command_args = ['python', process_path, trigger.process_name, conn_string, crypto_key, trigger.process_args, trigger.id]
239
+ command_args = ['python', process_path, trigger.process_name, conn_string, crypto_key, trigger.process_args, str(trigger.id)]
240
240
 
241
241
  process = subprocess.Popen(command_args, stderr=subprocess.PIPE, text=True) # pylint: disable=consider-using-with
242
242
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenOrchestrator
3
- Version: 2.0.0rc2
3
+ Version: 2.0.0rc3
4
4
  Summary: A package containing OpenOrchestrator and OpenOrchestrator Scheduler
5
5
  Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
6
6
  Project-URL: Homepage, https://github.com/itk-dev-rpa/OpenOrchestrator
@@ -14,7 +14,7 @@ OpenOrchestrator/database/schedulers.py,sha256=7eims2tMjKO6sl255_u9eXcVG6662ZSp-
14
14
  OpenOrchestrator/database/triggers.py,sha256=xNNKSanSoyIEcQgiBF91Bch4YsMOWeMoQ1ZE1PcL3dE,3878
15
15
  OpenOrchestrator/database/truncated_string.py,sha256=v5TvMn3Sof9sG3RzHZx5_wRGBZ5IcJTsiyIO20MjehA,521
16
16
  OpenOrchestrator/orchestrator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- OpenOrchestrator/orchestrator/application.py,sha256=rs5GdM6lkePjGxnUQVSeSEQWHtf2_MaieE0GaWaV-gE,3726
17
+ OpenOrchestrator/orchestrator/application.py,sha256=nEHpvsXdF0HS948yU_TzSD1DIsuYY_W1u0WqLGmNdBI,3446
18
18
  OpenOrchestrator/orchestrator/datetime_input.py,sha256=zLYjlS3t8BQfyzlXkyQSpM1erC2dOBggwCwi9wq8b1Y,3085
19
19
  OpenOrchestrator/orchestrator/test_helper.py,sha256=NDO7pcJg1GXK7R89WveQ3f-95T-FaOnnm_prB8UylmQ,660
20
20
  OpenOrchestrator/orchestrator/popups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -33,7 +33,7 @@ OpenOrchestrator/orchestrator_connection/connection.py,sha256=dDKyJI7PBxcbT0_6sw
33
33
  OpenOrchestrator/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  OpenOrchestrator/scheduler/application.py,sha256=TM9iXuFGW27ULESCzcGKcprGthWxOfArbCn3Qp6TI5Q,1632
35
35
  OpenOrchestrator/scheduler/run_tab.py,sha256=WkfePFe1bXda2LdiMW8f4Y4AmgaB_BcW3jh4GobZpw8,6117
36
- OpenOrchestrator/scheduler/runner.py,sha256=eNN6K6qxdQjiXZAHquqJ2vBnnv9TA2bfaP-yQgLYk0w,8470
36
+ OpenOrchestrator/scheduler/runner.py,sha256=CsuAxSsursBP6UeLLQY76aUoYAvV6mGuNzdMveOO924,8475
37
37
  OpenOrchestrator/scheduler/settings_tab.py,sha256=AUIM60IZKSUIn3yKjhG5qRLlEluj8zV0BzvF7dD52ig,3980
38
38
  OpenOrchestrator/scheduler/util.py,sha256=VEQ9dRgP60sOoL6uvTlvqSm0DRAGBbDIYVwPGn7krP8,185
39
39
  OpenOrchestrator/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -48,8 +48,8 @@ OpenOrchestrator/tests/ui_tests/test_queues_tab.py,sha256=riZph2PapSnf88m8plCEV7
48
48
  OpenOrchestrator/tests/ui_tests/test_schedulers_tab.py,sha256=5-8Hx4qlzbs3chz9bew_JoeRpKZFmQ8iFVp0Y03MBlo,1763
49
49
  OpenOrchestrator/tests/ui_tests/test_trigger_tab.py,sha256=9VgCQY0plOF8xjK5OCEN-07dMaOT_ObttKrSOdJW8p0,12521
50
50
  OpenOrchestrator/tests/ui_tests/ui_util.py,sha256=1v4hmXiQ0Aunth8IO-iUFLDiROMpDm1iOLZUGmuBa4A,4822
51
- openorchestrator-2.0.0rc2.dist-info/licenses/LICENSE,sha256=4-Kjm-gkbiOLCBYMzsVJZEepdsm2vk8QesNOASvi9mg,1068
52
- openorchestrator-2.0.0rc2.dist-info/METADATA,sha256=MN1MIvn-lf40W51pLZin6P69PvDsyqSmWRhm0xuMg2o,4755
53
- openorchestrator-2.0.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
54
- openorchestrator-2.0.0rc2.dist-info/top_level.txt,sha256=2btKMQESHuRC_ICbCjHTHH_-us2G7CyeskeaSTTL07Y,17
55
- openorchestrator-2.0.0rc2.dist-info/RECORD,,
51
+ openorchestrator-2.0.0rc3.dist-info/licenses/LICENSE,sha256=4-Kjm-gkbiOLCBYMzsVJZEepdsm2vk8QesNOASvi9mg,1068
52
+ openorchestrator-2.0.0rc3.dist-info/METADATA,sha256=5Kksg3dGMIHaQNl3nI1MKYl7yzkRUZ-N4Pp7oo-ym4Y,4755
53
+ openorchestrator-2.0.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
54
+ openorchestrator-2.0.0rc3.dist-info/top_level.txt,sha256=2btKMQESHuRC_ICbCjHTHH_-us2G7CyeskeaSTTL07Y,17
55
+ openorchestrator-2.0.0rc3.dist-info/RECORD,,