lgmfred / jobcenter Goto Github PK
View Code? Open in Web Editor NEWElixir version of a simple job management service
Home Page: https://lgmfred.github.io/jobcenter/
Elixir version of a simple job management service
Home Page: https://lgmfred.github.io/jobcenter/
The server checks that they are not fired without being sent a warning. Hint: use the process tracing primitives to do this.
Implement the basic job center functionality, with the following interface
start_link(list) :: {:ok, pid}
).add_job(pid, fun) :: non_neg_integer
).work_wanted(pid) :: {non_neg_integer, fun} | :no_work
).job_done(pid, non_neg_integer) -> :ok
).Add a statistics call that reports the status of the jobs in the queue and of jobs that are in progress and that have been done.
Check for lazy workers; these are workers that accept jobs but don’t deliver on time. Change the work wanted function to return JobNumber
, JobTime
, and F
where JobTime
is the time in seconds the worker has to complete the job. At the time JobTime - 1
, the server should send a :hurry_up
message to the worker if it has not finished the job. And at the time JobTime + 1
, it should kill the worker process with a :youre_fired
reason.
If a worker dies, make sure the jobs it was doing are returned to the pool of jobs waiting to be done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.