Skip to content
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

DM-22504: Support for lsstDebug functionality in Gen3 middleware #39

Merged
merged 1 commit into from Dec 13, 2019

Conversation

andy-slac
Copy link
Collaborator

The --debug option existed but did not do anyhting, added code that
imports debug.py when that option is set. Compared to CmdLineTask in
pipetask I do it in two places, once before PreExecInit (in case
someone needs to debug task construction) and once before running each
task. Latter is not needed if multiprocess uses 'fork' start method
but it is impossible to guarantee that is always true on all platforms.

try:
_LOG.debug("Will try to import debug.py")
import debug
assert debug # silence pyflakes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean "silence flake8", as that's the linter we use in CI, and I think we'd usually use a # noqa:<something> comment on the prevoius line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it's a copy&paste from CmdLineTask and I did not give any thought to it. Will fix it with noqa:F401.

The --debug option existed but did not do anyhting, added code that
imports `debug.py` when that option is set. Compared to CmdLineTask in
`pipetask` I do it in two places, once before PreExecInit (in case
someone needs to debug task construction) and once before running each
task. Latter is not needed if `multiprocess` uses 'fork' start method
but it is impossible to guarantee that is always true on all platforms.
@andy-slac andy-slac merged commit 843dae8 into master Dec 13, 2019
@timj timj deleted the tickets/DM-22504 branch April 23, 2020 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants