Question: How to run tasks with dependencies without parameter?
See original GitHub issueI cannot execute tasks with dependencies as the following example.
import gokart
#import luigi
class TaskA(gokart.TaskOnKart):
#param = luigi.Parameter()
def run(self):
self.dump("Hello")
class TaskB(gokart.TaskOnKart):
def requires(self):
#return TaskA(param="called by TaskB")
return TaskA()
def run(self):
res = self.load()
self.dump(res + "World!")
print(gokart.build(TaskB()))
>>> World
If I write the parameters show in the comments in the code, TaskA will work.
>>> HelloWorld!
Is this behavior a specification?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
luigi: task runs other tasks without creating dependency?
Suppose that there are two tasks: MainTask and OtherTask . MainTask is invoked via the command line using various parameters. Depending on the ......
Read more >Usage | Task
Dependencies run in parallel, so dependencies of a task should not depend one another. If you want to force tasks to run serially,...
Read more >Build Script Basics - Gradle User Manual
Most of the examples in this user guide are run with the -q command-line option. ... To add a dependency, the corresponding task...
Read more >DAGs — Airflow Documentation
A DAG (Directed Acyclic Graph) is the core concept of Airflow, collecting Tasks together, organized with dependencies and relationships to say how they...
Read more >Luigi Patterns — Luigi 2.8.13 documentation - Read the Docs
You'll need to use WrapperTask for this instead of the usual Task class, because this job will not produce any output of its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@e-mon @mski-iksm It’s work with gokart>=1.0.6 and set
serialized_task_definition_check=True
. Thank you 😃🆒 Thx for reporting!