Comments (2)
@noizu Instead of writing a custom implementation of priority queue, we might consider using erlang's built-in :gb_trees
or another lib that uses pairing heaps. One reason being we don't want to use atoms for each priority and instead use positive integers. We'll allow the users to use any integer in 0..10
as the priority for now, with the default being 5
. We might change this range in the future.
The Que.add
API should remain the same; priority and other future options should now be specified in the optional Keyword list opts
as the third argument. It would look like:
Que.add(SomeWorker, args, priority: 1)
from que.
Noted.
from que.
Related Issues (15)
- Worker is an Invalid Worker HOT 5
- Using Que in a multi-node environment HOT 7
- perform completes before monitor is installed causing failure HOT 3
- Que failing with Distillery release and Docker HOT 3
- setting :mnesia for Pow breaks non-persistent que
- Merge Request - Noizu Fork HOT 3
- Inserting into queue is slow when queue is long
- The pattern 'false' can never match the type 'true' HOT 7
- When running que.setup: (Memento.MnesiaException) Mnesia operation failed HOT 1
- Noob question HOT 1
- Delayed Jobs HOT 5
- How to properly shutdown app with Mnesia backed queue HOT 10
- Can't compile que on Erlang 20.2 and Elixir 1.6rc1 HOT 6
- Compilation issue on Elixir 1.7 HOT 3
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 que.