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

IntParameter TaskOnKart.fix_random_seed_value cannnot handle None #286

Closed
Hi-king opened this issue May 9, 2022 · 1 comment · Fixed by #287
Closed

IntParameter TaskOnKart.fix_random_seed_value cannnot handle None #286

Hi-king opened this issue May 9, 2022 · 1 comment · Fixed by #287
Assignees

Comments

@Hi-king
Copy link
Member

Hi-king commented May 9, 2022

Following code reproduces the error.

class EachTask(gokart.TaskOnKart):
    serialized_task_definition_check = True
    user = luigi.IntParameter()

    def run(self):
        print(self.user)
        self.dump(self.user)

class RunTask(gokart.TaskOnKart):
    serialized_task_definition_check = True
    def run(self):
        for i in range(5):
            done = yield EachTask(user=i)
            print("result", self.load(done))
        self.dump("done")

gokart.build(RunTask(), log_level=logging.INFO, reset_register=False)

ValueError: invalid literal for int() with base 10: 'None'

@Hi-king Hi-king self-assigned this May 9, 2022
@Hi-king
Copy link
Member Author

Hi-king commented May 9, 2022

Need OptionalIntParameter, which is very recent and not released feature 😿

spotify/luigi#3079

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 a pull request may close this issue.

1 participant