if (pastJob['config'] == jobInfo['config']) {
// if the config has not changed, we keep it.
// if it's failed, we don't launch a new job and keep it failed.
jobInfo['status'] = pastJob['status'];
if (pastJob['config'] == jobInfo['config']) {
// if the config has not changed, we keep it.
// if it's failed, we don't launch a new job and keep it failed.
jobInfo['status'] = pastJob['status'];