samsondav/rihanna

Module and function name should be columns to enable fast searching

samsondav opened this issue · 5 comments

Module and function name should be columns to enable fast searching

Do you want this in addition to the existing binary column? Or do you want that column to just be the serialized arguments going forward?

Good question. It could be in addition... or replace it. Not sure yet.

This is actually very needed. Looking at the db table, I missing this info. It's kind of a black box now.

I'd also loved to see the passed in args as separate column.

Another thing I'd like to see is the results of the last run in case of rescheduling the job, e.g. {:ok, due_at: }. So a column called maybe done_at with a done timestamp, and done_reason where the reason is passed

And I'd like the jobs to stay in the database, as they are removed as soon as they return {:ok, reason}. At least an config option for keeping the job records in the db.

Rather than new columns for mod/fun, it might be possible to have a json column as an optional storage for the serialized term. By default it would remain erlang serialized binary.