Add support for --sleep in importImages - #156
Conversation
WalkthroughA dynamic sleep interval feature was added to the image import process in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ArgParser
participant MWImport
participant FileSystem
User->>ArgParser: Run mwimport with --images and optional --images-sleep
ArgParser->>MWImport: Parse arguments
MWImport->>FileSystem: (If --images-sleep < 0) Count image files
FileSystem-->>MWImport: Return file count
MWImport->>MWImport: Calculate sleep (1 if count >= threshold, else 0)
MWImport->>MWImport: Prepare importImages script with --sleep flag
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
7c7f16e to
426f656
Compare
Summary by CodeRabbit
New Features
Tests