Skip to content

pass arguments to decorated function#34

Merged
JunAishima merged 1 commit intoNSLS2:mainfrom
JunAishima:fix-passing-args-end-of-run-workflow
Mar 31, 2026
Merged

pass arguments to decorated function#34
JunAishima merged 1 commit intoNSLS2:mainfrom
JunAishima:fix-passing-args-end-of-run-workflow

Conversation

@JunAishima
Copy link
Copy Markdown
Contributor

The Slack decorator is not passing through the api_key or dry_run kwargs into the function it wraps, resulting in no API key being used, even if defined in the call to end_of_run_workflow().

Remedy this by adding the kwargs when the wrapped func() is called.

Tested by calling end_of_run_workflow() from local python.

@JunAishima JunAishima requested a review from AbbyGi March 31, 2026 18:46
@JunAishima JunAishima merged commit 321659a into NSLS2:main Mar 31, 2026
1 check passed
@JunAishima JunAishima deleted the fix-passing-args-end-of-run-workflow branch March 31, 2026 18:47
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.

2 participants