Go to file
Victor Romano 7d3869f6e4 Modify db_session_cleanup to be a class decorator
To better apply obligatory decorators like db_session_cleanup, this
commit modifies db_session_cleanup to be a class decorator.

Test plan:
  - PASS: Build a custom ISO with the changes and deploy a DX system
          controller and a SX subcloud. Verify the system works as
          expected.
  - PASS: Manage a subcloud and verify the sync_status is "in-sync".
  - PASS: Unmanage a subcloud and verify the management status was
          updated to "unmanaged".
  - PASS: Run "dcmanager subcloud show <subcloud_name> --detail" and
          verify the output is correct.
  - PASS: Run "sudo dcorch-manage db_clean 0" and verify old jobs were
          successfully purged.
  - PASS: Verify no errors were observed on dcmanager or dcorch logs.
  - PASS: Verify no connections were stuck in "idle in transaction"
          state.

Story: 2011311
Task: 51895

Change-Id: I69fe12415783a7e949fe74871784c01db35672cf
Signed-off-by: Victor Romano <victor.gluzromano@windriver.com>
2025-04-08 10:37:28 -03:00
2019-04-19 19:52:44 +00:00
2018-08-07 11:51:21 -04:00
2022-11-21 16:58:49 +00:00
2019-03-15 10:56:03 -05:00
2024-06-25 14:49:42 -03:00
Description
StarlingX Distributed Cloud
40 MiB
Languages
Python 95.2%
Shell 4.6%
Makefile 0.2%