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

All variables from process are injected into a task function that takes in no parameters #337

Closed
DanielEidlin opened this issue Dec 24, 2022 · 1 comment · Fixed by #404

Comments

@DanielEidlin
Copy link
Contributor

Describe the bug
When you create a function that doesn't take any parameters in its signature, all the variables from the process scope are passed into it.
The workaround I used to solve this is to take in *args, **kwargs inside the task function signature.

To Reproduce
Steps to reproduce the behavior:

  1. Create a task function that takes in no parameters.
  2. Run a process which uses that task in it.
  3. Code crashes from an unexpected parameters error.

Expected behavior
No variables should be injected and the function should complete normally.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 3.0.4
@ohasi
Copy link
Contributor

ohasi commented Jul 8, 2023

Hey, took a knack at fixing it - #348.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants