-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fixes to pelican plugin staging #882
Fixes to pelican plugin staging #882
Conversation
Note: waiting until I write a unit test for review |
764da0e
to
d85e199
Compare
Since I have to wait until #798 is merged for a test to work. Marking as ready for review so we can get the bug fixes and refactoring in |
d85e199
to
46fb14e
Compare
Changes: - Found that how condor gives hooks a classad is in a different format than the plugin for some reason. For the hook the classad is split up by newlines but for the plugin it is by ';'. Therefore, made a new function for plugin stage to utilize. - Added function within the plugin to force logging to go to stderr (even though that is the default) as well as a file called `.PelicanPlugin.log`. This extra file is something you can specify in a condor submit file in `transfer_output_files` to get it back but only works if the job does not go on hold/if the plugin does not fail (not super helpful yet)
Separates out a lot of pieces of the main function into smaller functions. This helps with readability as well as for future unit testing.
This causes issues with plugin staging as condor will assume this is a classad being printed out when it in a shadow hook with the -l flag. This needs to be removed or add some sort of check if this is used with staging or the plugin
Just annoying for testing and not really needed, at least for now
46fb14e
to
1117218
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall seems good to me. Comments were very helpful to figure out what was going on, thanks!
Changes:
.PelicanPlugin.log
. This extra file is something you can specify in a condor submit file intransfer_output_files
to get it back but only works if the job does not go on hold/if the plugin does not fail (not super helpful yet)