Skip to content

fix(settings): bound file_storage.quota_bytes and validate soft < hard task time limits (#548) - #549

Open
montionugera wants to merge 1 commit into
antosubash:mainfrom
montionugera:fix/issue-548
Open

montionugera wants to merge 1 commit into
antosubash:mainfrom
montionugera:fix/issue-548

Conversation

@montionugera

Copy link
Copy Markdown

Closes #548

Summary

  • Bounded file_storage.quota_bytes (gt=0, max SQLite signed 64-bit int le=2**63 - 1, preserving None as unmeasured) in modules/file_storage/file_storage/settings.py.
  • Added a model validator on BackgroundTasksSettings in modules/background_tasks/background_tasks/settings.py requiring task_soft_time_limit < task_time_limit when both are set.
  • Added unit tests in modules/file_storage/tests/test_file_storage_settings_bounds.py and modules/background_tasks/tests/test_background_tasks_service.py.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings validation gaps: negative file_storage quota_bytes, soft task time limit above the hard limit

1 participant