collectiveidea / delayed_job_mongoid

Mongoid backend for delayed_job
MIT License
170 stars 120 forks source link

Improve how forking is handled #82

Closed johnnyshields closed 3 years ago

johnnyshields commented 3 years ago

This is a follow-up to #81.

I've updated the before_fork and after_fork callbacks. Here's the nuts and bolts:

In addition, this PR make some Job class method private which should not be exposed publicly.

I've added specs to increase coverage. I've also removed the YARDstick gem which verifies documentation. Bye-bye.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-24.1%) to 64.474% when pulling 49802efca14002b6e45580b8291d36df862bbced on johnnyshields:forking-improvements into db87465e649a18209bf9cd21a56a765bf7c584c4 on collectiveidea:master.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+2.2%) to 90.789% when pulling c4f10f6bc3022bcdb02e8153bb93d7e09ab258da on johnnyshields:forking-improvements into db87465e649a18209bf9cd21a56a765bf7c584c4 on collectiveidea:master.

dblock commented 3 years ago

Pretty scary may need tests and go :green: ;)

johnnyshields commented 3 years ago

OK specs now fixed. Please merge.

johnnyshields commented 3 years ago

Thanks for merging. I'm running this in prod with no issue.