justanhduc / task-spooler

A scheduler for GPU/CPU tasks
https://justanhduc.github.io/2021/02/03/Task-Spooler.html
GNU General Public License v2.0
273 stars 24 forks source link

Enhancement Request: Option to Redirect Log File When Adding Jobs #61

Open X1AOX1A opened 4 months ago

X1AOX1A commented 4 months ago

Current Situation

The -O option currently allows renaming the log file. However, it would be beneficial if this option could also redirect the log file to a specified directory.

Enhancement Proposal

Extend the functionality of the -O option to allow redirecting the log file to a specified path. This would enable users to specify different log directories for individual jobs without affecting pending jobs.

Example Usage

ts -O ./path1/logname bash example1.sh
ts -O ./path2/logname bash example2.sh
ts -O ./path3/logname bash example3.sh

Rationale

The --set_logdir option applies to all pending jobs, which limits flexibility. Allowing -O to specify log directories per job would enhance usability and provide finer control over log file management.