Skip to content

Blackboxai/avi cache scan#1

Open
userlg wants to merge 3 commits into
masterfrom
blackboxai/avi-cache-scan
Open

Blackboxai/avi cache scan#1
userlg wants to merge 3 commits into
masterfrom
blackboxai/avi-cache-scan

Conversation

@userlg

@userlg userlg commented Jul 10, 2026

Copy link
Copy Markdown
Owner

New cache scan

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 568dd54e69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +104 to +105
except subprocess.TimeoutExpired:
return ConversionResult(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove partial outputs after FFmpeg timeouts

When ffmpeg_timeout_seconds is configured and FFmpeg has already created output_path, this timeout path returns without deleting the partial MP4. The retry loop then calls convert() again, and the existing-file check at the top treats any existing output as a successful skip; with the default remove_source=True, that can mark a timed-out conversion successful and delete the original AVI while leaving a truncated MP4.

Useful? React with 👍 / 👎.

Comment on lines +139 to +140
if directory in dirs_to_scan or len(dirs_to_scan) == 1:
scan_roots = [directory]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Scan the singleton cached subdirectory instead of the root

When the cache reports exactly one new or modified subdirectory, len(dirs_to_scan) == 1 makes this fall back to scan_roots = [directory], so a common incremental case still performs a full rglob over the entire UNC tree. DirectoryCache.get_directories_to_scan() already uses {root_dir} to request a full scan and can return a singleton {subdir} for one changed folder, so the extra length check defeats the intended cache optimization.

Useful? React with 👍 / 👎.

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.

1 participant