Comments (4)
Just stumbled on https://github.com/rschmukler/agenda
from core.
Re: the above, looks like it's currently not DB-agnostic (Mongo specific atm) but there is some interest in changing that: agenda/agenda#348 No word from the author on that front though ...
I'd be interested in seeing this fleshed out as I could use it for the help wanted app ...
from core.
Agenda looks interesting. Might be worth investigating the LOE of adding database adapters to it so we could use it.
In general, my thoughts here are:
- We could take an adapter style approach here (a la Rails ActiveJob), where Denali doesn't know or care how a job is run, it just provides the interface for specifying jobs, and it's up to the user to provide runners.
- The other approach is that we bake in runners as well, so that Denali will schedule and execute the jobs.
Node's asynchronous model makes things interesting - you could potentially do background process in the same process as the web server. Of course, that exposes you to the risk of a bg job blocking the CPU and thus incoming web requests. So supporting in-process bg jobs might be a nice optional feature, but we'll need some non-blocking answer as well.
It looks like agenda doesn't manage a worker pool either, which is something Denali would need to support. In my past research, I didn't find any single solution for node bg jobs that satisfied everything, but there might be a way we can leverage something like Agenda to get us 70% there.
from core.
Closing in favor of http://discuss.denalijs.org/t/background-scheduled-jobs/27
from core.
Related Issues (20)
- Security reporting procedure HOT 2
- Investigate memory usage during build HOT 1
- Export base Object class
- Apply container as injection rather than constructor arg HOT 1
- Question: GraphQL HOT 1
- following quickstart, get "No class found for serializer:raw" HOT 1
- CLI arguments appear to not be properly typed HOT 2
- Should be consistent with server command (skipAudit) HOT 4
- `denali test` cannot find `denali` module
- Link to slack is dead HOT 1
- new denali app does not work HOT 4
- Docs site broken HOT 1
- empty execution context in acceptance test HOT 2
- allow to debug without brk HOT 3
- global module code that is `require`d is executed twice HOT 4
- priority of the resolvers is reversed
- when installing from git it should run denali install HOT 4
- Default addon blueprint never called when using `denali install` HOT 1
- when `getRelated` for a `hasOne` relationship returns `null` it throws
- Old versions of yarn break the CLI 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 core.