* Importexport: Fix scheduled jobs did not always update while in progress.

Long IDs would get truncated by the database and were not properly updated
This commit is contained in:
nathan 2024-01-10 13:11:42 -07:00
parent da8e191f96
commit 27816c1f91

View File

@ -277,7 +277,7 @@ class importexport_schedule_ui
$definition_list = ((array)$definitions->get_definitions());
$id = 'importexport.'.$definition_list[0].'.'.$data['target'];
return $id;
return substr($id, 0, 64);
}
/**
@ -407,7 +407,7 @@ class importexport_schedule_ui
$data['last_run'] = time();
// Lock job for an hour to prevent multiples overlapping
// $data['lock'] = time() + 3600;
$data['lock'] = time() + 3600;
self::update_job($data, true);
// check file