Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Allow ets/dets as backends in place of redis #9

Open
OldhamMade opened this issue Jan 16, 2016 · 5 comments
Open

Allow ets/dets as backends in place of redis #9

OldhamMade opened this issue Jan 16, 2016 · 5 comments

Comments

@OldhamMade
Copy link

It would be great if toniq could use ets/dets as a backend in place of redis, to reduce dependencies for use-cases where persistence of jobs/tasks isn't necessary.

@joakimk
Copy link
Owner

joakimk commented Jan 20, 2016

I want this feature too someday but I don't have any need for it myself and I'm not motivated to work on toniq just for fun in the near future. Contributions are welcome.

I'm curious, if you don't persist, what makes you use toniq? Retries? High level DSL for jobs?

@OldhamMade
Copy link
Author

A workload where starting from the beginning isn't that costly, or something run regularly where incremental failures can be ignored.

@whitfin
Copy link

whitfin commented Jan 30, 2016

Agreed with @OldhamMade - same use case. Jobs are gonna run frequently so if they fail it doesn't matter because they'll just run again in a few hours.

I'll take a look at contributing but don't have much free time atm so no promises.

@joakimk
Copy link
Owner

joakimk commented Feb 27, 2016

That seems reasonable.

As toniq is an in-memory queue that only uses redis as backup, making this change should not be that hard.

I think skipping persistance could be accomplished by changing enqueue to build a job in memory instead of storing it and changing how process_result is handled.

Exactly on what level to do these changes I don't know without diving in and trying to make the change :). I won't do this anytime soon though, so feel free to try.

@jalcine
Copy link

jalcine commented Jan 27, 2019

This is the reason I'm opting for Toniq in https://koype.net; largely for the DSL + retry logic. I'm guessing (ignorantly) that no headway towards decoupling Redis has been made?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants