Hi there, One of our staff testing scrontab has found that it's not possible to tell scrontab to append output to a file with: #SCRON --open-mode=append they get: #BAD: #SCRON --open-mode=append Any ideas? All the best, Chris
Hey Chris! Its documented that the valid options for SCRON are a subset of the ones that exist for srun/sbatch/salloc, and after looking around in the code for a while its clear that this is just one of the options that isn't currently supported. That said, supporting this option makes a lot of sense... so I'm looking at the best way to get the option supported for SCRON as well. I'll let you know when I have made more progress on it! Thanks! --Tim
Hi Tim, Totally understand, I opened it as it's causing issues for staff looking at how to migrate users from the old crontab command to this and I suspect if it's hitting them it would hit others too. Thanks so much! All the best, Chris
Hi Chris! We've added support for the --open-mode option on the SCRON lines. This support should be added in 20.11.5 (when it comes out), and consists of these commits: https://github.com/SchedMD/slurm/commit/27a7c1b24a090fe1768d94a8dff2e8ba63ec5935 https://github.com/SchedMD/slurm/commit/9ad3df5d620cdc4d1ecba2ef9fe1e40dac66fd7c https://github.com/SchedMD/slurm/commit/357c61201c552ed529bbdf69828bca3fe54b6e23 https://github.com/SchedMD/slurm/commit/537bb01a6eb2ba2988721115f1ff59b8e5396eb9 Let me know if these work for you! Thanks, --Tim
Hey Tim, That's great, thanks so much! All the best, Chris
Thanks Chris! I'm going to resolve this for now, let us know if anything else comes up! --Tim
Hi Tim, Will do, my plate is a little too full at the moment to get these onto our test system, I should have mentioned that in the previous message sorry! All the best, Chris