Comments (4)
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.
But yeah the docstring is definitely broken, we can fix it. Thanks!
from luigi.
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.
Sounds good. I think this is one of the Luigi "patterns" that we could point out in the introduction.
from luigi.
Related Issues (20)
- Command line parameters not being passed to workers in macOS HOT 2
- specify resources in luigi.build HOT 8
- task collection scheme seems to invalidate `batch_method=sum` HOT 2
- UnconsumedParameterWarning: 'no_configure_logging'
- int values to FloatParameter crashes worker
- See task workflow for indefinite time HOT 1
- "Object of type ... is not JSON serializable" when ListParameters of Task instances
- SVG visualisation breaks on dependencies between tasks with the same name HOT 5
- signal only works in main thread of the main interpreter
- Too wide permissions for /tmp/luigi
- dynamic requirements: what's wrong with what I am doing? HOT 3
- `h5py` compatibility with `S3Target` ? HOT 2
- Facing test failures for test/servertest.py on PPC64LE
- Only one worker process being created despite of passing workers as 3 and having simultaneous tasks to perform
- Faulty DONE status assignment HOT 2
- sqla.SQLAlchemyTarget.exist() won't work with SqlAlchemy 2.x version
- TypeError: <Target> object is not iterable when check_complete(dep) is False
- Questions about Copilot + Open Source Software Hierarchy
- `JobTask.dump` raises `TypeError` when replacing bytes to string
- Change `subprocess.check_output` option for bytes/string mismatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luigi.