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

RuntimeError: Unfulfilled dependency at run time #224

Open
e-mon opened this issue Jul 20, 2021 · 1 comment
Open

RuntimeError: Unfulfilled dependency at run time #224

e-mon opened this issue Jul 20, 2021 · 1 comment

Comments

@e-mon
Copy link
Contributor

e-mon commented Jul 20, 2021

Luigi (also gokart) implicitly assumes that the file is output when the Task run is executed, and if it is not, an error Unfulfilled dependency at run time is raised like following sample code.

This behavior is a bit confusing, so how about making sure that the file is output when the run completes?

import gokart
import luigi

class TaskA(gokart.TaskOnKart):
    def run(self):
        pass

class TaskB(gokart.TaskOnKart):
    def requires(self):
        return TaskA()

    def run(self):
        pass

if __name__ == '__main__':
    gokart.run(['TaskB', '--local-scheduler'], set_retcode=True)

error:

Traceback (most recent call last):
  File "/Users/e-mon/.pyenv/versions/3.7.5/lib/python3.7/site-packages/luigi/worker.py", line 176, in run
    raise RuntimeError('Unfulfilled %s at run time: %s' % (deps, ', '.join(missing)))
RuntimeError: Unfulfilled dependency at run time: TaskA__99914b932b
@vaaaaanquish
Copy link
Contributor

I think the best way to do this is to have the ability to support in luigi.
spotify/luigi#3095

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

No branches or pull requests

2 participants