problem with variable scope

problem with scope of variable sheduled in metho self.scheduled? -
result was always false.
Merge remote-tracking branch 'upstream/master'
safe YAML load of delayed job handler
Merge pull request #4 from Pepan/master

problem with variable scope