Comments (2)
I'm thinking a general, configurable polling delay in the TaskRunnerThread
rather than the ExecuteQueuedTask
provides for a more consistent behavior and should also solve the problem.
Polling in a while true loop without any delay is overkill even for a small number of TaskListeners anyways.
A default delay of 100ms seems about right.
I realize that it still has the issue of polling a lot when there is nothing in the queue, but this is necessary to retain the responsiveness of the system.
In the long term taking advantage of Redis' pub/sub features could be the solution.
from gofer.net.
Looking at the code, I see you had a variable for a PollDelay that wasn't being used. So maybe something like this: #53?
from gofer.net.
Related Issues (20)
- Add Support for overloaded Methods HOT 1
- Improve Documentation
- Re-enable At-Least-Once Processing
- Persist Scheduled Tasks to the Backing Store HOT 2
- Exceptions cannot be passed as as arguments.
- Task execution with argument of type System.Type throws exception HOT 4
- Roadmap to 1.0 Stable Release HOT 1
- Test Gofer.NET with Redis Cluster HOT 1
- TaskClient should run TaskScheduler in its own thread.
- Ensure ScheduledTasks are queued in order of timestamp.
- Add Windows Build
- [FeatureRequest] Add overload with cancellation token to the Listen() method HOT 8
- Can't use connection strings with passwords HOT 3
- Priority tasks
- Simple way to get Queue Depth? HOT 5
- Example of running multiple job listeners in a single process? HOT 5
- Recommended strategy to split producer code and worker code ? HOT 4
- Add TaskQueue.Enqueue(Expression<Func<T>>) to suppress warning CS4014 HOT 2
- Dashboard for monitoring
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 gofer.net.