Skip to content

IVS-723 - Implement file retention policy#275

Merged
rw-bsi merged 9 commits intodevelopmentfrom
IVS-723_File_Retention_Policy
Mar 4, 2026
Merged

IVS-723 - Implement file retention policy#275
rw-bsi merged 9 commits intodevelopmentfrom
IVS-723_File_Retention_Policy

Conversation

@rw-bsi
Copy link
Contributor

@rw-bsi rw-bsi commented Mar 2, 2026

  • refactored archive_files and remove_files Django Commands into generic 'apply_file_retention'
  • added Celery Beat schedules (non-overlapping)
  • updated make file to host beat in worker
  • updated docker compose files to host beat only in one worker

@rw-bsi rw-bsi self-assigned this Mar 2, 2026
@rw-bsi rw-bsi requested review from Ghesselink, aothms and civilx64 March 2, 2026 11:05
@rw-bsi rw-bsi marked this pull request as ready for review March 2, 2026 11:19
Copy link
Collaborator

@aothms aothms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

try:
os.remove(file_path)
except OSError as e:
# Raise to trigger transaction rollback
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the right course of action. If this is a headless process, nothing will get deleted, how will we find out?

@rw-bsi rw-bsi requested review from aothms and removed request for civilx64 March 3, 2026 23:41
@rw-bsi rw-bsi merged commit be9ead6 into development Mar 4, 2026
3 checks passed
@rw-bsi rw-bsi deleted the IVS-723_File_Retention_Policy branch March 4, 2026 20:15
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.

2 participants