Skip to content

Commit

Permalink
Pass debug through to merged-results. #1434
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jul 9, 2024
1 parent a6d9739 commit 57e75db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pscheduler-server/pscheduler-server/daemons/runner
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,13 @@ class RunWorker(pscheduler.GenericWorker):
merge_input_text = pscheduler.json_dump(merge_input)
self.log_debug("%d: Merging %s", self.id, merge_input_text)

# Child_env sill still be valid from when we ran the 'run'
# method above.
returncode, stdout, stderr = pscheduler.plugin_invoke(
"tool", tool, "merged-results",
stdin=merge_input_text, timeout=5)
stdin=merge_input_text,
env_add=child_env,
timeout=5)

self.log_debug("%d: Merged results: %d %s %s", self.id, returncode, stdout, stderr)

Expand Down
2 changes: 2 additions & 0 deletions pscheduler-tool-snooze/snooze/merged-results
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

import pscheduler

log = pscheduler.Log(prefix="tool-snooze", quiet=True)
input = pscheduler.json_load(exit_on_error=True);
log.debug("Input to merged results: %s" % input)

# TODO: Validate the input

Expand Down

0 comments on commit 57e75db

Please sign in to comment.