Comments (4)
resume
halts keys so that suspend
/resume
produces the same result as halt
/init
.
You'll need to explain why you want to partially suspend/resume.
from integrant.
I have this config:
{:proj/schedule [[1 :m some-task-fn]
[2 :m other-task-fn]]
:proj/data ["some" "long" "loading" "files"]}
I update the config by changing the :proj/schedule
opts:
{:proj/schedule [[1 :m some-task-fn]
[3 :m other-task-fn]] ;; <- changed
:proj/data ["some" "long" "loading" "files"]}
So now I suspend and resume :proj/schedule
to reflect the config changes. I don't see why :proj/data
should also be restarted instead of being left as is.
I need to use resume
so I can compare the new config with the running system and re-schedule only the changed tasks, while leaving the others running.
It makes sense that init
will return a system with only the specified keys, but in the case of resume
we are talking about a running system that could have had only some of its keys suspended
.
from integrant.
Manually choosing which keys to suspend/resume is not a use-case I want to support. It's more reliable to restart everything, and the suspend/resume system allows components with similar configurations to be reused.
from integrant.
Thank you for the comment.
from integrant.
Related Issues (20)
- Would you consider an integrant2 to support extensible build steps? HOT 10
- Support usage in Babashka environments HOT 20
- #{:idea} Pass the spec validations step on all defined states before calling init-key. HOT 1
- is it possible to access a component after it's init-key, but before it gets passed to the next key that depends on it? HOT 2
- Enter Integrant Video
- Add support for custom assertf definitions HOT 2
- Question: Extract "validation keys" logic from core/build implementation HOT 4
- Feature request: pre-init hook
- No method in multimethod 'init-key' for dispatch value HOT 2
- #ig/ref should allow for deep references HOT 1
- Uninitialized/literal configs HOT 1
- Tests don't run with 1.11 due to clojure.test/run-test already being defined HOT 1
- Feature proposal: expand-key HOT 2
- Any way to add constant key in `edn`? HOT 2
- Unable to access Presentations(Enter Integrant) HOT 3
- Perhaps use metadata as an alternative to resolve-key? HOT 2
- Refs/Refsets not preserved after expansion HOT 1
- Convenience tag to add methods for static keys HOT 1
- Is there a way to analyze components at the repl with their config resolved ? 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 integrant.