jobs: rewrite of the event loop handling

No match.