OpenOrchestrator 2.0.0rc1__tar.gz → 2.0.0rc3__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.
Files changed (79) hide show
  1. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/application.py +5 -13
  2. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/runner.py +1 -1
  3. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator.egg-info/PKG-INFO +1 -1
  4. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/PKG-INFO +1 -1
  5. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/changelog.md +2 -0
  6. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.Illustrations/Architecture.drawio +0 -0
  7. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.Illustrations/OpenOrchestrator Logo.svg +0 -0
  8. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.Illustrations/Scheduler.drawio +0 -0
  9. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.github/workflows/Changelog.yml +0 -0
  10. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.github/workflows/Linting.yml +0 -0
  11. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.github/workflows/Run-Tests.yml +0 -0
  12. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.github/workflows/python-publish.yml +0 -0
  13. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.gitignore +0 -0
  14. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/.pylintrc +0 -0
  15. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/LICENSE +0 -0
  16. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/__init__.py +0 -0
  17. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/__main__.py +0 -0
  18. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/common/__init__.py +0 -0
  19. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/common/connection_frame.py +0 -0
  20. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/common/crypto_util.py +0 -0
  21. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/common/datetime_util.py +0 -0
  22. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/__init__.py +0 -0
  23. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/base.py +0 -0
  24. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/constants.py +0 -0
  25. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/db_util.py +0 -0
  26. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/logs.py +0 -0
  27. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/queues.py +0 -0
  28. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/schedulers.py +0 -0
  29. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/triggers.py +0 -0
  30. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/database/truncated_string.py +0 -0
  31. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/__init__.py +0 -0
  32. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/datetime_input.py +0 -0
  33. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/popups/__init__.py +0 -0
  34. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/popups/constant_popup.py +0 -0
  35. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/popups/credential_popup.py +0 -0
  36. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/popups/generic_popups.py +0 -0
  37. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/popups/trigger_popup.py +0 -0
  38. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/constants_tab.py +0 -0
  39. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/logging_tab.py +0 -0
  40. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/queue_tab.py +0 -0
  41. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/schedulers_tab.py +0 -0
  42. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/settings_tab.py +0 -0
  43. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/tabs/trigger_tab.py +0 -0
  44. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator/test_helper.py +0 -0
  45. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator_connection/__init__.py +0 -0
  46. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/orchestrator_connection/connection.py +0 -0
  47. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/__init__.py +0 -0
  48. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/application.py +0 -0
  49. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/run_tab.py +0 -0
  50. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/settings_tab.py +0 -0
  51. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/scheduler/util.py +0 -0
  52. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/__init__.py +0 -0
  53. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/db_test_util.py +0 -0
  54. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/test_db_util.py +0 -0
  55. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/test_orchestrator_connection.py +0 -0
  56. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/test_trigger_polling.py +0 -0
  57. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/__init__.py +0 -0
  58. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/test_constants_tab.py +0 -0
  59. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/test_logging_tab.py +0 -0
  60. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/test_queues_tab.py +0 -0
  61. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/test_schedulers_tab.py +0 -0
  62. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/test_trigger_tab.py +0 -0
  63. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator/tests/ui_tests/ui_util.py +0 -0
  64. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator.egg-info/SOURCES.txt +0 -0
  65. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator.egg-info/dependency_links.txt +0 -0
  66. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator.egg-info/requires.txt +0 -0
  67. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/OpenOrchestrator.egg-info/top_level.txt +0 -0
  68. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/README.md +0 -0
  69. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/__init__.py +0 -0
  70. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/env.py +0 -0
  71. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/script.py.mako +0 -0
  72. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/versions/__init__.py +0 -0
  73. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/versions/rev_526b6edac328_add_schedulers_table.py +0 -0
  74. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/versions/rev_90d46abd44a3_added_trigger_priority.py +0 -0
  75. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic/versions/rev_b67b7649b282_initial.py +0 -0
  76. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/alembic.ini +0 -0
  77. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/manual_tests.txt +0 -0
  78. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/pyproject.toml +0 -0
  79. {openorchestrator-2.0.0rc1 → openorchestrator-2.0.0rc3}/setup.cfg +0 -0
@@ -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]
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.0rc1
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenOrchestrator
3
- Version: 2.0.0rc1
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
@@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
 
19
19
  ### Changed
20
20
 
21
+ - Server no longer stops after disconnects.
22
+ - Ui no longer checks if the page is in focus before updating.
21
23
  - Changed cli to use argparser.
22
24
  - Arguments to start Scheduler and Orchestrator are now subcommands (no '-' before 'o' and 's').
23
25
  - Trigger status 'Paused' is now colored orange in the trigger tab.