{% set job = createModel('Jobs').findById(uuid) %} {% if job is empty %} {% set job = service('queue').getJob(uuid) %} {% endif %}