The current logic for the xf:run-jobs command may in some circumstances see the task never stop - or at least run for longer than the server cron period.
do
{
$jobManager->runQueue($manualOnly, $maxRunTime);
// keep the memory limit down on long running...