Giter Site home page Giter Site logo

ironworker's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ironworker's Issues

Create Data<T> wrapper for things that should come from the state

Right now we just imply that everything that comes after the first argument comes from the state. What I'd like to see is an API that looks like this:

fn my_job(db_conn: Data<DbConn>, payload: Message<u32>)....

So basically we can specify args in any order and we can also impl a trait (let's call it FromJob) for any type that needs to either grab things from the state or transform the payload in some way.

Improve the Queue UI for Axum

The queue UI is pretty barebones right now. We should add/expose additional metadata to the UI and allow for things like retrying failed jobs

Tombstone Cleanup

When a job dies (typically if a worker gets killed), the job that it was processing never gets re-enqueued. There should be some way of having a worker take some time to clean up after its dead comrades.

How/should it be synchronized? This smells like a scheduled task, and scheduling isn't something that's been figured out yet.

Add postgres queueing mechanism

I'd like ironworker to be fairly plug and play for databases, postgres seems like a good option to start because of its ability to lock (and I'm more familiar with it than other DBs). We should create a postgres broker and a way to run migrations via the broker to set up the job tables.

Scheduled Jobs

Related (and I think foundational to) #5

I'd like to have the concept of scheduling a job at some point in the future. I don't think this would work with a rpush style mechanism in redis, so there's probably some research that needs to be done in order to figure out the best approach.

If we have a scheduled job, only one worker can pick up the job, making maintenance tasks much easier (and opening up the possibility of cronjobs/recurring jobs in the future)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.