simple-module-background-tasks 0.0.48__tar.gz → 0.0.50__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 (215) hide show
  1. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/PKG-INFO +5 -5
  2. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/contracts/events.py +1 -1
  3. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/contracts/logs.py +1 -1
  4. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/_lifecycle.py +4 -4
  5. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/constants.py +1 -11
  6. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/health.py +1 -1
  7. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/invalidation.py +2 -2
  8. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/invalidation_channel.py +1 -1
  9. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/settings.py +9 -10
  10. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/settings_celery.py +2 -2
  11. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/settings_env_checks.py +17 -25
  12. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/sync_db.py +6 -6
  13. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/after_commit.py +2 -2
  14. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/retry_service.py +1 -1
  15. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/service.py +2 -2
  16. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/tenant_context.py +1 -1
  17. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/locales/de.json +147 -0
  18. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/locales/en.json +148 -1
  19. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/logs/service.py +1 -1
  20. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/logs/sink.py +1 -1
  21. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/models.py +3 -3
  22. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/module.py +5 -5
  23. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/clock.py +2 -2
  24. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/dispatch.py +7 -3
  25. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/service.py +1 -1
  26. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/sweep.py +1 -1
  27. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/transport.py +4 -4
  28. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/worker.py +6 -6
  29. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/i18n.generated.ts +221 -1
  30. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/deps.py +3 -3
  31. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/api_admin.py +3 -3
  32. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/api_status.py +7 -7
  33. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/logs_api.py +3 -3
  34. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/logs_views.py +4 -4
  35. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/outbox_api.py +3 -3
  36. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/outbox_views.py +4 -4
  37. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/views.py +4 -4
  38. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/_signal_bus.py +1 -1
  39. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/celery_app.py +1 -1
  40. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/principals.py +6 -2
  41. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/runner.py +3 -3
  42. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/settings.py +1 -1
  43. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/package.json +1 -1
  44. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/pyproject.toml +5 -5
  45. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/conftest.py +2 -2
  46. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/health/test_background_tasks_redis_health.py +1 -1
  47. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_background_tasks_invalidation.py +1 -1
  48. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_background_tasks_invalidation_degraded.py +1 -1
  49. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_background_tasks_invalidation_redis.py +1 -1
  50. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_background_tasks_invalidation_warmup.py +1 -1
  51. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_installation_channel.py +4 -4
  52. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/invalidation/test_invalidation_bridge.py +1 -1
  53. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_db_timeouts.py +1 -1
  54. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_redis_url.py +69 -33
  55. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_settings.py +3 -3
  56. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_after_commit.py +2 -2
  57. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_eager_bindings.py +1 -1
  58. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_newest_first_status.py +1 -1
  59. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_read_projection.py +1 -1
  60. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_service.py +1 -1
  61. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_tz_columns.py +1 -1
  62. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/admin/test_background_tasks_outbox_admin.py +2 -2
  63. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/admin/test_background_tasks_outbox_tenancy.py +5 -3
  64. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_delivery_context.py +2 -2
  65. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_inprocess_sweep.py +3 -3
  66. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_concurrency.py +4 -4
  67. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_delivery.py +2 -2
  68. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_eager_platform.py +3 -3
  69. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_eager_serialization.py +1 -1
  70. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_fence_guard.py +5 -5
  71. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_guard_savepoint.py +2 -2
  72. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_publish_scope.py +3 -3
  73. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_retry_policy.py +2 -2
  74. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_swallowed_cancel.py +2 -2
  75. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_worker_chain.py +5 -4
  76. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/delivery/test_background_tasks_outbox_worker_task.py +2 -2
  77. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_pagination_bounds.py +1 -1
  78. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_task_status_api.py +1 -1
  79. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_users_ordering.py +1 -1
  80. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_principal_config.py +3 -3
  81. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_principals.py +2 -2
  82. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_routes_override_api.py +1 -1
  83. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_runner_settings.py +5 -5
  84. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_worker_settings.py +2 -2
  85. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_runner_invalidation_identity.py +2 -2
  86. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_argument_json.py +1 -1
  87. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_execution_bindings.py +1 -1
  88. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_resource_status.py +4 -4
  89. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_task_progress.py +1 -1
  90. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_task_progress_audit.py +1 -1
  91. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_tracking_modes.py +1 -1
  92. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_worker_audit.py +1 -1
  93. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_worker_audit_bookkeeping.py +1 -1
  94. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/tenancy/test_background_tasks_custom_bases.py +1 -1
  95. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/tenancy/test_background_tasks_execution_tenancy.py +1 -1
  96. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/tenancy/test_background_tasks_worker_tenancy_context.py +1 -1
  97. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/.gitignore +0 -0
  98. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/LICENSE +0 -0
  99. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/README.md +0 -0
  100. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/__init__.py +0 -0
  101. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/contracts/__init__.py +0 -0
  102. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/contracts/outbox.py +0 -0
  103. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/contracts/schemas.py +0 -0
  104. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/__init__.py +0 -0
  105. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/config_guards.py +0 -0
  106. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/db_settings.py +0 -0
  107. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/services.py +0 -0
  108. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/settings_logs.py +0 -0
  109. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/core/tracking.py +0 -0
  110. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/__init__.py +0 -0
  111. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/executions/filters.py +0 -0
  112. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/logs/__init__.py +0 -0
  113. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/logs/purge.py +0 -0
  114. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/__init__.py +0 -0
  115. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/claim.py +0 -0
  116. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/guard.py +0 -0
  117. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/loop.py +0 -0
  118. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/outbox/support.py +0 -0
  119. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/Detail.tsx +0 -0
  120. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/Index.tsx +0 -0
  121. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/Logs.tsx +0 -0
  122. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/Outbox.tsx +0 -0
  123. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/Workers.tsx +0 -0
  124. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/pages/api.generated.ts +0 -0
  125. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/py.typed +0 -0
  126. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/tasks.py +0 -0
  127. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/DetailFacts.tsx +0 -0
  128. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/ExecutionRow.tsx +0 -0
  129. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/ExecutionsTable.tsx +0 -0
  130. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/LogLevelSelect.tsx +0 -0
  131. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/LogTable.tsx +0 -0
  132. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/LogsPanel.tsx +0 -0
  133. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/OutboxTable.tsx +0 -0
  134. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/PayloadCards.tsx +0 -0
  135. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/ProgressCard.tsx +0 -0
  136. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/RetryAllDialog.tsx +0 -0
  137. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/RetryConfirmDialog.tsx +0 -0
  138. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/RoutesTable.tsx +0 -0
  139. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/StatusPill.tsx +0 -0
  140. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/StatusStrip.tsx +0 -0
  141. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/TaskFilters.tsx +0 -0
  142. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/TasksEmpty.tsx +0 -0
  143. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/TracebackCard.tsx +0 -0
  144. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/WorkerCard.tsx +0 -0
  145. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/WorkerEmptyStates.tsx +0 -0
  146. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/components/WorkerHealthBanner.tsx +0 -0
  147. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/utils/constants.ts +0 -0
  148. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/utils/logs.ts +0 -0
  149. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/utils/outbox.ts +0 -0
  150. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/utils/retry.ts +0 -0
  151. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/ui/utils/worker-health.ts +0 -0
  152. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/__init__.py +0 -0
  153. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/web/endpoints/__init__.py +0 -0
  154. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/__init__.py +0 -0
  155. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/_signal_support.py +0 -0
  156. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/fleet_state.py +0 -0
  157. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/inspector.py +0 -0
  158. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/log_context.py +0 -0
  159. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/signals.py +0 -0
  160. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/task_heartbeat.py +0 -0
  161. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/task_resource.py +0 -0
  162. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/task_routing.py +0 -0
  163. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/background_tasks/worker/tenant_celery.py +0 -0
  164. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_beat_schedule.py +0 -0
  165. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_config_guards.py +0 -0
  166. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_settings_env.py +0 -0
  167. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/settings/test_background_tasks_startup_log_masking.py +0 -0
  168. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/sync_db/test_background_tasks_sync_db.py +0 -0
  169. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/core/sync_db/test_background_tasks_sync_db_fork.py +0 -0
  170. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/retry/test_background_tasks_retry_failed_bulk.py +0 -0
  171. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/retry/test_background_tasks_retry_failed_guards.py +0 -0
  172. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/retry/test_background_tasks_retry_sweep_ordering.py +0 -0
  173. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_index_has_executions.py +0 -0
  174. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_list_item_payload.py +0 -0
  175. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_order_index.py +0 -0
  176. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_publish_validation.py +0 -0
  177. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_retention_retries.py +0 -0
  178. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/executions/service/test_background_tasks_savepoint_publish.py +0 -0
  179. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/logs/purge/test_background_tasks_log_purge.py +0 -0
  180. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/logs/sink/test_background_tasks_log_context.py +0 -0
  181. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/logs/sink/test_background_tasks_log_sink.py +0 -0
  182. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/logs/sink/test_background_tasks_log_sink_loop.py +0 -0
  183. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/logs/sink/test_background_tasks_log_sink_nul.py +0 -0
  184. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/loop/test_background_tasks_outbox_loop_interrupt.py +0 -0
  185. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/outbox/loop/test_background_tasks_outbox_thread_loops.py +0 -0
  186. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_admin_api.py +0 -0
  187. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_detail_props.py +0 -0
  188. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_index_filters.py +0 -0
  189. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_log_api.py +0 -0
  190. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/web/api/test_background_tasks_page_clamp.py +0 -0
  191. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/inspector/test_background_tasks_index_worker_presence.py +0 -0
  192. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/inspector/test_background_tasks_worker_inspector.py +0 -0
  193. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/inspector/test_background_tasks_workers_endpoints.py +0 -0
  194. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/inspector/test_background_tasks_workers_uptime.py +0 -0
  195. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_database_provider.py +0 -0
  196. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/runner/test_background_tasks_task_routing.py +0 -0
  197. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_heartbeat.py +0 -0
  198. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_quiet_sweep_unrecorded.py +0 -0
  199. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_resource_transport.py +0 -0
  200. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_result_json.py +0 -0
  201. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_signal_tenant_stamp.py +0 -0
  202. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_signals.py +0 -0
  203. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/signals/test_background_tasks_sweep_stuck.py +0 -0
  204. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/tenancy/test_background_tasks_tenant_context.py +0 -0
  205. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests/worker/tenancy/test_background_tasks_worker_tenancy.py +0 -0
  206. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_DetailPage.test.tsx +0 -0
  207. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_IndexPage.test.tsx +0 -0
  208. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_LogsTab.test.tsx +0 -0
  209. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_OutboxPage.test.tsx +0 -0
  210. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_WorkerHealthBanner.test.tsx +0 -0
  211. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/background_tasks_WorkersPage.test.tsx +0 -0
  212. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/outbox.test.ts +0 -0
  213. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/retry.test.ts +0 -0
  214. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/stub-fetch.ts +0 -0
  215. {simple_module_background_tasks-0.0.48 → simple_module_background_tasks-0.0.50}/tests-js/task-formatters.test.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: simple_module_background_tasks
3
- Version: 0.0.48
3
+ Version: 0.0.50
4
4
  Summary: Celery + Redis task queue with admin UI for monitoring and retrying failed/stuck tasks
5
5
  Project-URL: Homepage, https://github.com/antosubash/simple_module_python
6
6
  Project-URL: Repository, https://github.com/antosubash/simple_module_python
@@ -23,10 +23,10 @@ Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.12
24
24
  Requires-Dist: celery[redis]<6,>=5.4
25
25
  Requires-Dist: redis<9,>=5
26
- Requires-Dist: simple-module-core==0.0.48
27
- Requires-Dist: simple-module-db==0.0.48
28
- Requires-Dist: simple-module-hosting==0.0.48
29
- Requires-Dist: simple-module-settings==0.0.48
26
+ Requires-Dist: simple-module-core==0.0.50
27
+ Requires-Dist: simple-module-db==0.0.50
28
+ Requires-Dist: simple-module-hosting==0.0.50
29
+ Requires-Dist: simple-module-settings==0.0.50
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  # simple_module_background_tasks
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import uuid
6
6
  from dataclasses import dataclass
7
7
 
8
- from simple_module_core.events import Event
8
+ from simple_module_core.eventing.events import Event
9
9
 
10
10
 
11
11
  @dataclass
@@ -6,7 +6,7 @@ import uuid
6
6
  from datetime import datetime
7
7
  from typing import Any
8
8
 
9
- from simple_module_db.types import AwareDateTime
9
+ from simple_module_db.models.types import AwareDateTime
10
10
  from sqlmodel import Field, SQLModel
11
11
 
12
12
 
@@ -20,7 +20,7 @@ async def startup(app: FastAPI, module_name: str) -> None:
20
20
  """Build the Celery app, install signal handlers, hand-off to worker."""
21
21
  import asyncio
22
22
 
23
- from simple_module_hosting.log_sinks import redact
23
+ from simple_module_hosting.observability.log_sinks import redact
24
24
 
25
25
  from background_tasks.core.db_settings import worker_database_options
26
26
  from background_tasks.core.sync_db import configure_database, set_database_url
@@ -60,7 +60,7 @@ async def startup(app: FastAPI, module_name: str) -> None:
60
60
  # Registered here, not in register_health_checks: the Celery app does
61
61
  # not exist until this hook builds it, and the check must follow later
62
62
  # settings changes rather than pinning the boot-time instance.
63
- from simple_module_core.health import HealthCheck
63
+ from simple_module_core.web.health import HealthCheck
64
64
 
65
65
  from background_tasks.core.health import CHECK_REDIS, build_redis_check
66
66
 
@@ -87,7 +87,7 @@ async def startup(app: FastAPI, module_name: str) -> None:
87
87
 
88
88
  def install_durable_transport(app: FastAPI) -> None:
89
89
  """Make ``bus.publish_durable`` write to this module's outbox (GH #459)."""
90
- from simple_module_core.principals import PRINCIPALS_KEY
90
+ from simple_module_core.access.principals import PRINCIPALS_KEY
91
91
 
92
92
  from background_tasks.core.constants import OutboxMode
93
93
  from background_tasks.outbox.sweep import start_sweep
@@ -128,7 +128,7 @@ async def start_invalidation_transport(app: FastAPI) -> None:
128
128
  documented cross-process limit as ``bind_event_bus`` above: a task that
129
129
  invalidates a cache should do it through an API call or accept the TTL.
130
130
  """
131
- from simple_module_hosting.installation import ensure_installation_id
131
+ from simple_module_hosting.config.installation import ensure_installation_id
132
132
 
133
133
  from background_tasks.core.constants import DEFAULT_INVALIDATION_CHANNEL
134
134
  from background_tasks.core.invalidation import RedisInvalidationTransport
@@ -10,8 +10,7 @@ from __future__ import annotations
10
10
 
11
11
  from enum import StrEnum
12
12
 
13
- from simple_module_core.deprecation import deprecate
14
- from simple_module_core.permissions import PermissionCatalogue
13
+ from simple_module_core.access.permissions import PermissionCatalogue
15
14
 
16
15
  # ── Module identity ─────────────────────────────────────────────
17
16
  MODULE_NAME = "background_tasks"
@@ -45,15 +44,6 @@ class Permissions(
45
44
  MANAGE = "background_tasks.manage"
46
45
 
47
46
 
48
- deprecate(
49
- "background_tasks PERM_* constants",
50
- remove_in="0.0.50",
51
- use="background_tasks.core.constants.Permissions",
52
- )
53
- PERM_VIEW = Permissions.VIEW
54
- PERM_MANAGE = Permissions.MANAGE
55
-
56
-
57
47
  # ── Routes ──────────────────────────────────────────────────────
58
48
  API_PREFIX = "/api/background_tasks"
59
49
  VIEW_PREFIX = "/admin/background-tasks"
@@ -17,7 +17,7 @@ from __future__ import annotations
17
17
  import asyncio
18
18
 
19
19
  from fastapi import FastAPI
20
- from simple_module_core.health import HealthCheckResult, HealthStatus
20
+ from simple_module_core.web.health import HealthCheckResult, HealthStatus
21
21
 
22
22
  CHECK_REDIS = "background_tasks.redis"
23
23
 
@@ -23,7 +23,7 @@ import logging
23
23
  from typing import TYPE_CHECKING
24
24
 
25
25
  if TYPE_CHECKING:
26
- from simple_module_core.invalidation import InvalidationBus
26
+ from simple_module_core.eventing.invalidation import InvalidationBus
27
27
 
28
28
  logger = logging.getLogger(__name__)
29
29
 
@@ -92,7 +92,7 @@ a round trip on an open socket, not a connect.
92
92
  class RedisInvalidationTransport:
93
93
  """Publishes and listens on a channel plus an optional rolling-upgrade bridge.
94
94
 
95
- Satisfies ``simple_module_core.invalidation.InvalidationTransport``
95
+ Satisfies ``simple_module_core.eventing.invalidation.InvalidationTransport``
96
96
  structurally — no import of the Protocol at runtime, so this file costs
97
97
  nothing when the bus is unused.
98
98
  """
@@ -1,6 +1,6 @@
1
1
  """Default installation channel and the temporary rolling-upgrade bridge."""
2
2
 
3
- from simple_module_core.deprecation import deprecate
3
+ from simple_module_core.runtime.deprecation import deprecate
4
4
 
5
5
  from background_tasks.core.constants import DEFAULT_INVALIDATION_CHANNEL
6
6
 
@@ -13,13 +13,12 @@ never sees ``app.state``) has no other source at all. Like every env var it
13
13
  beats a stored value (env → DB → default): ``env_seeded_fields`` reports both
14
14
  fields to the hydrator, since ``SM_REDIS_URL`` is read by their default
15
15
  factories where pydantic's env source cannot see it. With it unset, the two
16
- fields keep separate DB overrides for anyone who wants the broker and the
17
- backend on different Redis databases.
16
+ fields keep separate DB overrides.
18
17
 
19
- ``SM_BG_TASKS_BROKER_URL`` and ``SM_BG_TASKS_RESULT_BACKEND`` still work and
20
- take precedence over ``SM_REDIS_URL`` — a deployment that set them meant them —
21
- but log a deprecation warning when they hold a Redis URL (any other transport,
22
- such as ``memory://``, is theirs to set and logs nothing, GH #868). Being real
18
+ ``SM_BG_TASKS_BROKER_URL`` and ``SM_BG_TASKS_RESULT_BACKEND`` are supported
19
+ per-field overrides for separate Redis databases or other transports (#1214).
20
+ They take precedence over ``SM_REDIS_URL``. An INFO message suggests removing
21
+ an override only when it equals the configured ``SM_REDIS_URL``. Being real
23
22
  env reads, they also beat a stored value (env → DB → default, GH #486). They
24
23
  are answered by pydantic's own env source now that ``env_prefix`` is set
25
24
  (GH #283), which is also what stops every other field being readable from its
@@ -40,7 +39,7 @@ from typing import Literal
40
39
 
41
40
  from pydantic import Field, ValidationInfo, field_validator, model_validator
42
41
  from pydantic_core import PydanticCustomError
43
- from simple_module_core.settings_hydrate import RELATED_FIELDS_CTX
42
+ from simple_module_core.settings.settings_hydrate import RELATED_FIELDS_CTX
44
43
 
45
44
  from background_tasks.core.constants import (
46
45
  DEFAULT_OUTBOX_LEASE_SECONDS,
@@ -53,7 +52,7 @@ from background_tasks.core.constants import (
53
52
  from background_tasks.core.settings_celery import _CELERY_RESTART, CelerySettingsFields
54
53
  from background_tasks.core.settings_env_checks import (
55
54
  forbid_localhost_broker_in_production,
56
- warn_on_legacy_redis_vars,
55
+ warn_on_redundant_redis_vars,
57
56
  )
58
57
  from background_tasks.core.tracking import TrackingMode
59
58
 
@@ -171,7 +170,7 @@ class BackgroundTasksSettings(CelerySettingsFields):
171
170
 
172
171
  @model_validator(mode="after")
173
172
  def _check_broker_env(self) -> BackgroundTasksSettings:
174
- """Deprecation warnings and the production localhost-broker refusal."""
175
- warn_on_legacy_redis_vars(self.broker_url, self.result_backend)
173
+ """Redundant-override hints and the production localhost-broker refusal."""
174
+ warn_on_redundant_redis_vars(self.broker_url, self.result_backend)
176
175
  forbid_localhost_broker_in_production(self.broker_url, self.result_backend)
177
176
  return self
@@ -13,7 +13,7 @@ from typing import Any
13
13
  from pydantic import Field, ValidationInfo, field_validator
14
14
  from pydantic_core import PydanticCustomError
15
15
  from pydantic_settings import SettingsConfigDict
16
- from simple_module_core.settings_hydrate import RELATED_FIELDS_CTX
16
+ from simple_module_core.settings.settings_hydrate import RELATED_FIELDS_CTX
17
17
 
18
18
  from background_tasks.core.config_guards import parse_task_routes
19
19
  from background_tasks.core.constants import (
@@ -41,7 +41,7 @@ def _redis_from_env(default: str) -> str:
41
41
  ``env_prefix`` means pydantic's env source has already answered
42
42
  ``SM_BG_TASKS_BROKER_URL`` / ``SM_BG_TASKS_RESULT_BACKEND`` by the time a
43
43
  default is needed, so this factory is only the ``SM_REDIS_URL`` half — the
44
- legacy names keep working, and keep winning, through that source instead."""
44
+ per-field overrides take precedence through that source instead."""
45
45
  return os.environ.get(ENV_REDIS_URL) or default
46
46
 
47
47
 
@@ -9,7 +9,7 @@ from __future__ import annotations
9
9
  import logging
10
10
  import os
11
11
 
12
- from simple_module_core.environments import NON_PROD_ENVIRONMENTS
12
+ from simple_module_core.settings.environments import NON_PROD_ENVIRONMENTS
13
13
 
14
14
  from background_tasks.core.constants import ENV_PREFIX, ENV_REDIS_URL
15
15
 
@@ -22,32 +22,24 @@ logger = logging.getLogger("background_tasks.settings")
22
22
  _REDIS_SCHEMES = frozenset({"redis", "rediss"})
23
23
 
24
24
 
25
- def warn_on_legacy_redis_vars(broker_url: str, result_backend: str) -> None:
26
- """Nudge deployments off the per-field names onto ``SM_REDIS_URL``.
25
+ def warn_on_redundant_redis_vars(broker_url: str, result_backend: str) -> None:
26
+ """Suggest removing only overrides already supplied by ``SM_REDIS_URL``.
27
27
 
28
- Warns rather than failing: ``smpy_gis``, ``smpy_saas``,
29
- ``laco_wiki_python`` and the ``nodes-k8s`` manifests all set these, and
30
- breaking them on upgrade buys nothing. It runs as a model validator rather
31
- than in the default factory because ``env_prefix`` means the env source
32
- answers these names before any default is consulted, so the factory never
33
- sees them.
34
-
35
- Only a Redis URL is warned about (#868): for anything else, such as the
36
- in-process ``memory://`` + ``cache+memory://`` pair or an AMQP broker,
37
- ``SM_REDIS_URL`` can't express the value and these vars are the way to
38
- set it.
28
+ Per-field overrides support separate Redis DBs and non-Redis transports
29
+ (#1214). Check the effective value too: explicit constructor arguments can
30
+ supersede the environment. Never log URLs, which may contain credentials.
39
31
  """
40
- for value, legacy_var in (
32
+ redis_url = os.environ.get(ENV_REDIS_URL)
33
+ if not redis_url or redis_url.partition("://")[0].lower() not in _REDIS_SCHEMES:
34
+ return
35
+ for value, env_var in (
41
36
  (broker_url, f"{ENV_PREFIX}BROKER_URL"),
42
37
  (result_backend, f"{ENV_PREFIX}RESULT_BACKEND"),
43
38
  ):
44
- if os.environ.get(legacy_var) != value:
45
- continue
46
- if value.partition("://")[0].lower() in _REDIS_SCHEMES:
47
- logger.warning(
48
- "%s is deprecated; use %s instead (one URL seeds both the "
49
- "broker and the result backend).",
50
- legacy_var,
39
+ if os.environ.get(env_var) == value == redis_url:
40
+ logger.info(
41
+ "%s is redundant with %s and can be removed.",
42
+ env_var,
51
43
  ENV_REDIS_URL,
52
44
  )
53
45
 
@@ -74,8 +66,8 @@ def forbid_localhost_broker_in_production(broker_url: str, result_backend: str)
74
66
  f"{names} must not point at localhost when SM_ENVIRONMENT={env!r}. "
75
67
  f"Set {ENV_REDIS_URL} on the container to the Redis service host "
76
68
  "(e.g. redis://redis:6379/0) — one URL seeds both the broker and "
77
- f"the result backend. ({env_names} still override it per field; "
78
- "they are deprecated for a Redis URL, but stay the way to set any "
79
- "other transport.) Environment variables are read before the "
69
+ f"the result backend. ({env_names} override it per field for "
70
+ "separate Redis databases or other transports.) "
71
+ "Environment variables are read before the "
80
72
  "DB-backed settings exist, so one is what satisfies this at boot."
81
73
  )
@@ -20,11 +20,11 @@ from contextlib import contextmanager
20
20
 
21
21
  from celery.signals import worker_process_init
22
22
  from simple_module_db import DEFAULT_TENANT_ID
23
- from simple_module_db.audit_sinks import discover_audit_callback
24
- from simple_module_db.engine_options import connect_args
25
- from simple_module_db.listeners import attach_session_listeners
26
- from simple_module_db.provider import DatabaseProvider, detect_provider
27
- from simple_module_db.query_filter import EngineTenancy, bind_engine_policy
23
+ from simple_module_db.auditing.audit_sinks import discover_audit_callback
24
+ from simple_module_db.engine.engine_options import connect_args
25
+ from simple_module_db.engine.provider import DatabaseProvider, detect_provider
26
+ from simple_module_db.models.listeners import attach_session_listeners
27
+ from simple_module_db.scoping.query_filter import EngineTenancy, bind_engine_policy
28
28
  from sqlalchemy import create_engine
29
29
  from sqlalchemy.engine import Engine
30
30
  from sqlalchemy.orm import Session, sessionmaker
@@ -227,7 +227,7 @@ def _dispose_inherited_engine(**_: object) -> None:
227
227
  @worker_process_init.connect
228
228
  def _init_sentry(**_: object) -> None:
229
229
  """Start Sentry in each prefork child (no-op without ``SM_SENTRY_DSN``)."""
230
- from simple_module_hosting.sentry import PROCESS_WORKER, init_sentry
230
+ from simple_module_hosting.observability.sentry import PROCESS_WORKER, init_sentry
231
231
 
232
232
  init_sentry(PROCESS_WORKER)
233
233
 
@@ -31,8 +31,8 @@ from collections.abc import Callable, Sequence
31
31
  from typing import Any
32
32
 
33
33
  from simple_module_db import RequestSession, bind_current_tenant, mark_written
34
- from simple_module_db.callbacks import open_savepoints
35
- from simple_module_db.transaction import SESSION_START_KEY
34
+ from simple_module_db.engine.callbacks import open_savepoints
35
+ from simple_module_db.engine.transaction import SESSION_START_KEY
36
36
  from sqlalchemy import event
37
37
  from sqlalchemy.ext.asyncio import AsyncSession
38
38
  from sqlalchemy.orm import Session, SessionTransaction
@@ -15,7 +15,7 @@ from collections.abc import Callable, Sequence
15
15
  from typing import TYPE_CHECKING, Any
16
16
 
17
17
  from kombu.utils.json import loads
18
- from simple_module_core.events import EventBus
18
+ from simple_module_core.eventing.events import EventBus
19
19
  from simple_module_db import RequestSession, all_tenants, tenant_context
20
20
  from sqlalchemy import Select, func, select, update
21
21
  from sqlmodel import col
@@ -7,9 +7,9 @@ from datetime import UTC, datetime, timedelta
7
7
  from typing import TYPE_CHECKING
8
8
 
9
9
  from fastapi import HTTPException, status
10
- from simple_module_core.events import EventBus
10
+ from simple_module_core.eventing.events import EventBus
11
11
  from simple_module_db import RequestSession
12
- from simple_module_db.pagination import total_pages
12
+ from simple_module_db.queries.pagination import total_pages
13
13
  from sqlalchemy import func, select
14
14
 
15
15
  from background_tasks.contracts.schemas import (
@@ -18,7 +18,7 @@ from contextvars import ContextVar, Token
18
18
  from typing import Any
19
19
 
20
20
  from simple_module_db import TenantIsolationError, current_tenant_id, is_valid_tenant_id
21
- from simple_module_db.listeners import current_user_id
21
+ from simple_module_db.models.listeners import current_user_id
22
22
 
23
23
  from background_tasks.core.constants import OWNER_ID_MAX_LENGTH
24
24
 
@@ -222,5 +222,152 @@
222
222
  "empty_description": "Es gibt keine Treffer. Die Protokollspeicherung ist standardmäßig deaktiviert: Aktivieren Sie log_sink_enabled in den Einstellungen für Hintergrundaufgaben und starten Sie anschließend den Webprozess und die Worker neu.",
223
223
  "load_failed": "Protokollzeilen konnten nicht geladen werden",
224
224
  "platform": "Plattform"
225
+ },
226
+ "settings_form": {
227
+ "title": "Hintergrundaufgaben",
228
+ "description": "Wie Aufgaben eingereiht, ausgeführt und nachverfolgt werden und wie lange ihre Datensätze aufbewahrt werden.",
229
+ "groups": {
230
+ "celery": "Aufgabenausführung",
231
+ "logs": "Gespeicherte Logs",
232
+ "database": "Worker-Datenbank"
233
+ },
234
+ "fields": {
235
+ "execution_tracking": {
236
+ "label": "Ausführungsverfolgung",
237
+ "help": "Standard dafür, wie viel jedes Aufgabenlaufs aufgezeichnet wird: alles, nur Endzustände, nur Fehler (und Widerrufe) oder nichts. Einzelne Aufgaben können das überschreiben. Änderungen erfordern einen Neustart."
238
+ },
239
+ "track_publish": {
240
+ "label": "Einreihen verfolgen",
241
+ "help": "Aufzeichnen, wann eine Aufgabe eingereiht wird, nicht nur wann sie läuft. Gilt für Aufgaben mit vollständiger Verfolgung."
242
+ },
243
+ "outbox_mode": {
244
+ "label": "Modus der Ereigniszustellung",
245
+ "help": "Ob dauerhafte Ereignisse vom Task-Runner oder im Webprozess zugestellt werden. Laufen Aufgaben sofort, stellt immer der Webprozess zu.",
246
+ "choices": {
247
+ "celery": "Task-Runner (Celery)",
248
+ "inprocess": "Im Webprozess"
249
+ }
250
+ },
251
+ "outbox_max_attempts": {
252
+ "label": "Maximale Zustellversuche",
253
+ "help": "Zustellversuche, bevor ein dauerhaftes Ereignis als gescheitert markiert wird, von 1 bis 100."
254
+ },
255
+ "outbox_sweep_interval_seconds": {
256
+ "label": "Prüfintervall für Ereignisse (Sekunden)",
257
+ "help": "Wie oft nach zuzustellenden Ereignissen gesucht wird."
258
+ },
259
+ "outbox_lease_seconds": {
260
+ "label": "Reservierungsdauer für Ereignisse (Sekunden)",
261
+ "help": "Wie lange eine reservierte Zustellung laufen darf, bevor ein anderer Worker sie übernehmen kann."
262
+ },
263
+ "outbox_handler_timeout_seconds": {
264
+ "label": "Zeitlimit für Ereignis-Handler (Sekunden)",
265
+ "help": "Wie lange ein Handler pro Versuch laufen darf. Leer lassen für den längsten Wert, den die Reservierung zulässt."
266
+ },
267
+ "log_sink_enabled": {
268
+ "label": "Logs in der Datenbank speichern",
269
+ "help": "Anwendungs- und Aufgaben-Logzeilen in der Datenbank ablegen. Erfordert einen Neustart von Web-App und Workern."
270
+ },
271
+ "log_sink_level": {
272
+ "label": "Niedrigste gespeicherte Log-Stufe",
273
+ "help": "Logzeilen unterhalb dieser Stufe werden verworfen. Möglich sind DEBUG, INFO, WARNING, ERROR oder CRITICAL."
274
+ },
275
+ "log_retention_days": {
276
+ "label": "Aufbewahrung von Logs (Tage)",
277
+ "help": "Wie lange gespeicherte Logzeilen aufbewahrt werden, von 1 bis 3650 Tagen."
278
+ },
279
+ "db_pool_size": {
280
+ "label": "Größe des Verbindungspools",
281
+ "help": "Höchstzahl an Datenbankverbindungen, die der Aufgaben-Datenbankpool pro Prozess zur Wiederverwendung hält. Wird bei SQLite nicht verwendet."
282
+ },
283
+ "db_max_overflow": {
284
+ "label": "Zusätzliche Verbindungen",
285
+ "help": "Zusätzliche Verbindungen, die der Aufgaben-Datenbankpool pro Prozess öffnen darf, wenn alle regulären belegt sind. Wird bei SQLite nicht verwendet."
286
+ },
287
+ "db_recycle": {
288
+ "label": "Wiederverwendungsdauer von Verbindungen (Sekunden)",
289
+ "help": "Verbindungen, die älter als diese Anzahl Sekunden sind, werden bei der nächsten Nutzung ersetzt. 0 ersetzt eine Verbindung bei jeder Entnahme aus dem Pool."
290
+ },
291
+ "db_statement_timeout_ms": {
292
+ "label": "Statement-Zeitlimit (ms)",
293
+ "help": "Maximale Laufzeit einer PostgreSQL-Anweisung aus Hintergrundaufgaben. Leer lassen, um das Limit der Anwendung zu verwenden; 0 behält das Limit der Datenbank bei."
294
+ },
295
+ "broker_url": {
296
+ "label": "Broker-URL",
297
+ "help": "Adresse des Message-Brokers, der Aufgaben einreiht, meist Redis. Eine Änderung erfordert einen Neustart."
298
+ },
299
+ "result_backend": {
300
+ "label": "URL des Ergebnisspeichers",
301
+ "help": "Adresse, unter der Aufgabenergebnisse gespeichert werden, meist Redis."
302
+ },
303
+ "task_default_queue": {
304
+ "label": "Standard-Warteschlange",
305
+ "help": "Warteschlange für Aufgaben ohne eigene Route."
306
+ },
307
+ "task_routes_override": {
308
+ "label": "Routen-Überschreibungen für Aufgaben",
309
+ "help": "Aufgaben ohne Codeänderung in andere Warteschlangen leiten. JSON, das ein Aufgabennamen-Muster einer Warteschlange zuordnet."
310
+ },
311
+ "visibility_timeout_seconds": {
312
+ "label": "Sichtbarkeits-Timeout (Sekunden)",
313
+ "help": "Nur beim Redis-Broker: Aufgaben, die länger laufen, werden erneut vergeben und laufen eventuell doppelt. Leer lassen für den Redis-Standard von einer Stunde."
314
+ },
315
+ "worker_max_tasks_per_child": {
316
+ "label": "Aufgaben pro Worker-Prozess",
317
+ "help": "Einen Worker-Prozess nach dieser Anzahl Aufgaben neu starten. Leer lassen für kein Limit."
318
+ },
319
+ "worker_max_memory_per_child_kb": {
320
+ "label": "Speicherlimit pro Worker-Prozess (KB)",
321
+ "help": "Einen Worker-Prozess ersetzen, nachdem er eine Aufgabe beendet hat, wenn er mehr Speicher belegt. Eine laufende Aufgabe wird nicht unterbrochen. Leer lassen für kein Limit."
322
+ },
323
+ "task_reject_on_worker_lost": {
324
+ "label": "Aufgaben bei Worker-Verlust erneut einreihen",
325
+ "help": "Eine Aufgabe wieder einreihen, wenn ihr Worker mitten im Lauf abstürzt. Sie kann dann mehrfach laufen."
326
+ },
327
+ "task_soft_time_limit": {
328
+ "label": "Weiches Zeitlimit (Sekunden)",
329
+ "help": "Nach dieser Zeit wird eine Aufgabe gebeten, geordnet zu stoppen, und kann aufräumen. Ist auch ein hartes Limit gesetzt, muss dieser Wert niedriger sein."
330
+ },
331
+ "task_time_limit": {
332
+ "label": "Hartes Zeitlimit (Sekunden)",
333
+ "help": "Nach dieser Zeit wird eine Aufgabe zwangsweise gestoppt, sofern der Worker-Pool das unterstützt. Ist auch ein weiches Limit gesetzt, muss dieser Wert höher sein."
334
+ },
335
+ "worker_concurrency": {
336
+ "label": "Parallelität pro Worker",
337
+ "help": "Wie viele Aufgaben ein Worker gleichzeitig ausführt. Leer lassen für den Standard."
338
+ },
339
+ "broadcast_invalidations": {
340
+ "label": "Cache-Invalidierungen zwischen Prozessen teilen",
341
+ "help": "Lässt jeden Webprozess über Redis erfahren, wenn ein anderer einen Cache leert. Ohne diese Option, und in eigenständigen Task-Workern, behalten Caches veraltete Daten bis zum Ablauf."
342
+ },
343
+ "invalidation_channel": {
344
+ "label": "Invalidierungs-Kanal",
345
+ "help": "Name des Kanals, über den Cache-Invalidierungen laufen. Leer lassen, um ihn aus der Datenbank abzuleiten."
346
+ },
347
+ "task_always_eager": {
348
+ "label": "Aufgaben sofort ausführen",
349
+ "help": "Aufgaben sofort im aufrufenden Prozess ausführen, statt sie einzureihen. Per Name gesendete Aufgaben gehen weiterhin in die Warteschlange. Für Tests gedacht."
350
+ },
351
+ "task_eager_propagates": {
352
+ "label": "Fehler sofort ausgeführter Aufgaben weitergeben",
353
+ "help": "Bei sofortiger Ausführung Fehler der Aufgabe an den Aufrufer weiterreichen."
354
+ },
355
+ "stuck_after_seconds": {
356
+ "label": "Als hängend markieren nach (Sekunden)",
357
+ "help": "Standardzeit ohne Lebenszeichen, nach der eine laufende Aufgabe als hängend markiert wird. Einzelne Aufgaben können eigene Werte setzen."
358
+ },
359
+ "stuck_sweep_interval_seconds": {
360
+ "label": "Prüfintervall für hängende Aufgaben (Sekunden)",
361
+ "help": "Wie oft laufende Aufgaben auf Hängen geprüft werden."
362
+ },
363
+ "purge_interval_seconds": {
364
+ "label": "Bereinigungsintervall (Sekunden)",
365
+ "help": "Wie oft abgelaufene Aufgabeneinträge, zugestellte Ereigniseinträge und aufbewahrte Protokolle bereinigt werden."
366
+ },
367
+ "retention_days": {
368
+ "label": "Aufbewahrung von Aufgabendatensätzen (Tage)",
369
+ "help": "Alter, ab dem abgeschlossene Aufgabeneinträge und zugestellte Ereigniseinträge bereinigt werden, von 1 bis 3650 Tagen."
370
+ }
371
+ }
225
372
  }
226
373
  }