Comments (4)
This seems like a really good idea. File hashes will be expensive to compute if there are many files, so we could use the modtime. I think this is what Make does.
from kit.
Note, this is only needed when starting up. The way that Make does this is that it compares the built file timestamp with the source file. If the built file is newer, then it is up-to-date, older then rebuild is needed.
from kit.
What about this syntax
# we watch these files
watch: [foo]
# when the task runs to completion and exit code 0, touch this file
touch: bar
from kit.
so we could use the modtime. I think this is what Make does.
Yes that's what I wrote above. Although modtime is imperfect as it will trigger when you save a file and there were no changes.
Note, this is only needed when starting up.
Does watch
already check for this condition?
What about this syntax
I would think that if there's a watch
, there's no need for another field, as those are the ones you'd check the timestamp or checksum against.
For tasks without outputs though, that might be useful
from kit.
Related Issues (20)
- Concise formatting
- `kit doc` document the tasks.yaml HOT 1
- Better output when in error state
- Easier to debug faults HOT 9
- failed to pull image: Error response from daemon: Please run 'docker login' HOT 1
- demo kit
- Comparison to other Task Runners? HOT 9
- Profiles HOT 2
- Conditional tasks HOT 2
- Env file support HOT 1
- Disable watch option HOT 3
- `ARGO_LOG_LEVEL` has no effect HOT 12
- Memory leak? HOT 3
- Custom color and prefix support for logging
- Runs indefinitely when used as an `onCreateCommand` in GH Codespaces HOT 1
- `yarn install` task sometimes runs indefinitely inside of Kit HOT 4
- User interface HOT 3
- Local Splunk HOT 1
- Filter logs by individual tasks 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 kit.