Closed prioux closed 2 years ago
was not able to log any tasks stats, no log is created. (Running local bourreau)
Hi Sergiy. No wonder, I wasn't asking anyone to review this PR, so I have not provided any information about how to enable the feature. But since you want to try...
In the console, find your Bourreau then configure the path where you want to log things:
b=Bourreau.find(12345)
b.meta[:user_logfile_path] = '/some/path/user_submit.log'
Then restart your bourreau.
well, I done almost what you asked
RemoteResource Load (0.9ms) SELECT `remote_resources`.* FROM `remote_resources` ORDER BY `remote_resources`.`id` ASC LIMIT 1 OFFSET 1
MetaDataStore Load (0.7ms) SELECT `meta_data_store`.* FROM `meta_data_store` WHERE `meta_data_store`.`ar_id` = 2 AND `meta_data_store`.`ar_table_name` = 'remote_resources'
=> "/home/users/sboroday/logpath2"
@MontrealSergiy Sure, that looks good. So did you get a log file ?
yes, though not imeddiatly
"2022-06-30T16:59:19-04:00","admin","3322","BashScriptor","0","0","600"```
Yes, the log entries appear at the end of a task's lifecycle.
Thanks for looking at it.
ok then
Optional feature: the admin can configure a Bourreau to log information about submitted jobs in an external CSV file.