From 39297b8640d95891c1a65c4a6857ef127610c268 Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Wed, 23 Jan 2019 18:40:15 +1300 Subject: [PATCH] MINOR Add message to inform user that the task can be run again without issue --- src/Dev/Tasks/MigrateFileTask.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Dev/Tasks/MigrateFileTask.php b/src/Dev/Tasks/MigrateFileTask.php index 4b026b876af..a7ca519f5e8 100644 --- a/src/Dev/Tasks/MigrateFileTask.php +++ b/src/Dev/Tasks/MigrateFileTask.php @@ -17,8 +17,9 @@ class MigrateFileTask extends BuildTask protected $title = 'Migrate File dataobjects from 3.x'; - protected $description - = 'Imports all files referenced by File dataobjects into the new Asset Persistence Layer introduced in 4.0'; + protected $description = + 'Imports all files referenced by File dataobjects into the new Asset Persistence Layer introduced in 4.0. ' . + 'If the task fails or times out, run it again and it will start where it left off.'; public function run($request) { @@ -27,6 +28,11 @@ public function run($request) return; } + DB::alteration_message( + 'If the task fails or times out, run it again and it will start where it left off.', + "info" + ); + $migrated = FileMigrationHelper::singleton()->run(); if ($migrated) { DB::alteration_message("{$migrated} File DataObjects upgraded", "changed"); @@ -38,7 +44,6 @@ public function run($request) DB::alteration_message("No image thumbnail helper detected", "notice"); return; } - ImageThumbnailHelper::singleton()->run(); } }