Betterment / delayed

a multi-threaded, SQL-driven ActiveJob backend used at Betterment to process millions of background jobs per day
MIT License
156 stars 9 forks source link

Changes in schema usage/assumptions from `delayed_job`? #25

Closed stesen-wefunder closed 1 year ago

stesen-wefunder commented 1 year ago

Hello again!

Thanks again for this awesome library. I've ended up with one more question as I dig through our code to evaluate switching.

In what ways have you changed either the schema of the delayed_jobs table, or the assumptions surrounding how it's used?

We have a number of places in our code which--whether or not this is something that should have been done--directly query the table.

Generally these do one of a few things:

Would you expect any of those queries, or queries against the table in general, to break? Does Delayed provide new/better ways to do any of these things? Are there any DB migrations that need to be run to switch libraries?

smudge commented 1 year ago

Hi @stesen-wefunder! All of those queries should still work as expected! We haven't changed the table structure at all. (There's always a possibility that we will, but if we ever did, we'd be sure to broadcast it with a major version bump and transitional code to ensure that the table can be migrated with zero downtime.)

stesen-wefunder commented 1 year ago

Awesome! I'm really happy with how compatible this still is!

Same as my other issue, feel free to leave this one open or close at your leisure. :)

Thanks!