Closed johanneskoester closed 3 months ago
[!WARNING]
Rate limit exceeded
@johanneskoester has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 9 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 84e1133a1b16d321e3248a1f932fb30e43d0a32c and cd09e0851bf013a5f5b0beb61e29fc1111726ba1.
The updates to the snakemake_storage_plugin_fs
module significantly enhance the store_object
method by implementing a robust cleanup step before storing new objects. This ensures that any existing data, whether in a directory or as a file, is removed, thereby preventing conflicts and maintaining a clean state for new data storage.
Files | Change Summary |
---|---|
snakemake_storage_plugin_fs/__init__.py |
Enhanced store_object method to include cleanup logic: recursively removes directory contents or deletes existing files before storage. |
sequenceDiagram
participant Client
participant StoragePlugin
participant FileSystem
Client->>StoragePlugin: store_object(data)
StoragePlugin->>FileSystem: Check target path
alt Target is a directory
StoragePlugin->>FileSystem: Remove contents (shutil.rmtree)
else Target is a file
StoragePlugin->>FileSystem: Remove file (unlink)
end
StoragePlugin->>FileSystem: Store new object
FileSystem-->>StoragePlugin: Confirm storage
StoragePlugin-->>Client: Success
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit