Skip to content
Merged

flake8 #1610

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/apps/analytics/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def reset_computed_storage_analytics():
)
)


@app.task(queue="site-worker")
def delete_orphan_files():
logger.info("Task delete_orphan_files started")
Expand Down Expand Up @@ -620,6 +621,7 @@ def get_most_recent_storage_inconsistency_log_file(logger):

return most_recent_log_file


def get_files_path_from_orphan_log_file(log_file_path, logger):
files_path = []

Expand Down
2 changes: 1 addition & 1 deletion src/apps/api/views/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def delete_orphan_files(request):

if not request.user.is_superuser:
raise PermissionDenied(detail="Admin only")

global delete_orphan_files_task
delete_orphan_files_task = delete_orphan_files_async_task.delay()

Expand Down