-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
(Edited) Option to log context #416
Comments
I edited the issue to be about more general context logging instead of just the command. |
You can use |
Sure but it builds the graph to get me that information. No problem with a small workflow, big annoyance with a big workflow :-) I don't mind adding log_context manually as in the example, but would be a great option to have as a flag in |
At the end of your workflow file, you can do this:
Then run your workflow file with
|
Will try that next time! I like having access to the slurm jobID in the log file though. Anyway, it was just an idea for a possible improvement. I understand not wanting to clutter the interface. I'll use my context logger for the targets that make sense! :-) |
More introspection features are definitely a good idea, but there are many different needs and usability compromises. I'll give it some thought :-) |
It could be nice to have an option for logging the target context before executing the call. E.g. to have easy access to the JobID when going through the log of a failed target, and being able to see the called command for debugging or rerunning interactively.
As previously mentioned, I have a pretty large workflow that takes quite a while to do anything with. If I just want to run a job interactively with all the paths and settings filled in by the workflow script, it would be nice to know the exact call (e.g. a python script with lots of paths, etc.).
I've come up with the following wrapper function, that gives me this information. Could something like this be useful to integrate in
gwf
? This version only works for the slurm backend currently, but it illustrates the idea:Here's an example .stdout output:
The text was updated successfully, but these errors were encountered: