Closed Bug 999060 Opened 10 years ago Closed 10 years ago

crontabber mixins over propagate requirements

Categories

(Socorro :: Backend, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lars, Assigned: lars)

Details

Attachments

(1 file)

Attached file PR for the fix
I've discovered that the mixins are overworking. If we have jobs A, B and C, at they, repetitively require resources X, Y and Z, the mixins will set it up like this:

A -> X
B -> X, Y
C -> X, Y, Z

when it should be:

A -> X
B -> Y
C -> Z

this happens because the mixin decorators are using the 'required_config' directly rather than calling the 'get_required_config' method. This is a relatively benign problem as jobs with extra resources just ignore them. It makes for messy ini files, though.
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/77600e10758f34444f3a59f95fe2b7f64fdb9ff6
Merge pull request #2011 from twobraids/mixin-mixup

Fixes Bug 999060 - mixins inadvertently propagate changes to other classes
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: