-
Notifications
You must be signed in to change notification settings - Fork 3
Fix SlurmClusterExecutor bug #697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe logic for checking the existence of an output cache file in the task scheduler was updated. Instead of checking for a filename in a list, the code now checks for the full file path in the cache directory, potentially affecting task execution and cache utilization behavior. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SlurmClusterExecutor
participant TaskScheduler
participant FileSystem
User->>SlurmClusterExecutor: submit(foo, 1)
SlurmClusterExecutor->>TaskScheduler: submit task
TaskScheduler->>FileSystem: get_cache_files(cache_directory)
TaskScheduler->>FileSystem: Check if full output file path exists
alt Output file exists
TaskScheduler-->>SlurmClusterExecutor: Return cached result
else Output file does not exist
TaskScheduler->>FileSystem: Dump input data file
TaskScheduler->>SlurmClusterExecutor: Schedule task execution
end
SlurmClusterExecutor-->>User: Return result
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Pylint (3.3.7)executorlib/task_scheduler/file/shared.py📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)executorlib/task_scheduler/file/shared.py (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (1)
✨ 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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #697 +/- ##
=======================================
Coverage 96.81% 96.81%
=======================================
Files 29 29
Lines 1317 1317
=======================================
Hits 1275 1275
Misses 42 42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #688
Summary by CodeRabbit