For some long running jobs in a plugin I wrote I used the jobs interface to crank up some ansible tasks that can take hours to complete.
But if it’s “next to” then a template in the app.yml seems appropriate ; if it’s “started by Discourse” then a job makes sense.