GithubHelp home page GithubHelp logo

task complete with no inputs about luigi HOT 4 CLOSED

spotify avatar spotify commented on May 10, 2024
task complete with no inputs

from luigi.

Comments (4)

erikbern avatar erikbern commented on May 10, 2024

Not sure if we have a lot of jobs with no input and output, but we definitely have a lot of jobs with no real output, just as a way of invoking other jobs. We normally write a checkpoint in HDFS or on the local file system to mark it as done.

You need some way to save the state so I think that's the easiest, but of course you could also figure out something more elaborate like using a database to track it. As you can see in the code above, the default implementation is to check all outputs, but you could also override complete and just issue a query against a db.

Not sure what's best. In principle I guess you could rely on the scheduler to remember which tasks have been executed, but right now by design any worker can override it by just scheduling again. I think this is probably a reasonable thing to do since it makes testing easier (like if you want to re-run something).

from luigi.

erikbern avatar erikbern commented on May 10, 2024

But yeah the docstring is definitely broken, we can fix it. Thanks!

from luigi.

jcrobak avatar jcrobak commented on May 10, 2024

Sorry for being inexact -- you understood my question correctly, though. I was really asking about no output jobs :)

I can go down the checkpoint in HDFS route, unless there's an easy way to tell mark something done in the server. I was actually thinking it might be useful to capture the output of the run and put it into the file that is generated, for history's sake.

from luigi.

erikbern avatar erikbern commented on May 10, 2024

Sounds good. I think this is one of the Luigi "patterns" that we could point out in the introduction.

from luigi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.