Will variables in ruby filter break with multiple workers?

No, not if you use a locally scoped variable name like 'a'. More details here.