-
Notifications
You must be signed in to change notification settings - Fork 110
Fix: various typos in comments and strings, note on result dir #200
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
- Replace TODO comment with actual implementation - Add os.makedirs() call to ensure log directory exists before file operations - Prevents FileNotFoundError when accessing solver logs
…_client_solver_settings.py
and corrected "concelation" to "cancellation" in job_queue.py
|
Thank you @MohdAatifSiddi for the PR, PR looks good. I will enable CI and if everything goes smooth we can merge the PR. @MohdAatifSiddi Please feel free to create issues and PRs to make cuOpt better and serve your needs. |
|
/ok to test 095dcd2 |
|
This change does not actually result in the directory being created, because there is already a check when the result dir location is set as to whether the directory exists and is writable by the process (settings.py, set_result_dir()) The intention is to fail immediately on startup. The results directory is used as an alternate means of returning results, instead of sending over http. It also doubles as the log directory (perhaps it shouldn't and a log directory should be separate). Since results are really important, a user ought to know where they are and ought to be sure they have access to the directory before running problems. Hence, we do not create it for them. A log directory, though -- if we separate it out I could see that. $ python -m cuopt_server.cuopt_service -r /bill |
|
In fact, even in the default case this crashes the log callback mechanism in the webserver because os.makedirs("") is an error. The default value of the result dir is "", ie an empty path. Trace with an added exception handler in cuopt/log/{id} endpoint. 2025-07-25 15:30:07.231 DEBUG job_result returning msgpack |
|
The typo fixes are good, we'll keep those and file an issue to separate log dir from result dir. |
|
/ok to test 4aec192 |
|
/ok to test 3810819 |
|
/merge |
Description
Replace TODO comment with actual implementation
Add os.makedirs() call to ensure log directory exists before file operations
Prevents FileNotFounderror when accessing solver logs
Issue
Checklist