We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Task parameters can be set at gokart.run() as following example.
gokart.run()
gokart.run(['SampleTask', '--local-scheduler', '--param=hello'])
When using gokart.build() this is not possible, which makes changing parameters bothersome.
gokart.build()
The text was updated successfully, but these errors were encountered:
Is there a scene where you want to dynamically change the parameters of an instantiated class?
x = GokartTask(task_parameter=1) <- we can change gokart.build(x)
Sorry, something went wrong.
@vaaaaanquish I believe that the parameter injection feature will be needed when
class ChildTask(TaskOnKart): task_parameter2:int = luigi.IntParameter() class RootTask(TaskOnKart): task_parameter:int = luigi.IntParameter() def requires(self): return ChildTask() x = RootTask(task_parameter=1) gokart.build(x)
In such case, ChildTask.task_parameter2 must be set somehow. I think this may happen sometimes.
I see the demand.
No branches or pull requests
Task parameters can be set at
gokart.run()
as following example.When using
gokart.build()
this is not possible, which makes changing parameters bothersome.The text was updated successfully, but these errors were encountered: