Closed (won't fix)
Project:
Migrate
Version:
7.x-2.5
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2013 at 13:02 UTC
Updated:
7 Jun 2013 at 04:27 UTC
Hi,
Is it possible to get a "signal" from migrate module that a import failed to complete (or got stuck).
I would like to be able to have Drupal send a message (via email/sms, etc.) that a migration task failed.
Thanks for the migrate module.
All the best,
Guy
Comments
Comment #1
mikeryanHow would you imagine this working? A cron hook looking for non-idle migration tasks where the map table counts don't change between cron calls? How would it handle an update migration, where there's really no way from outside of the migration to know if it's doing anything?
Comment #2
mikeryanComment #3
guysaban commentedHi Mike,
Sorry for getting back to you late.
I have been away. I am not sure if you closed this issue due to lack of a reply - so I reply now.
Here are my answers to your questions:
1) How would you imagine this working?
I am assuming that maybe I am using Migrate for a purpose different to its original intent. I want to use migrate on a regular (daily) basis to import data into Drupal/MySQL from a predefined source (daily downloaded file). I assume Migrate when originally intended for once off data migration.
I need it for regular automated data migrations which need "oversight" from an external/internal function that can notify (on an automated basis) if "something" possibly did not work in the migration process.
2) A cron hook looking for non-idle migration tasks where the map table counts don't change between cron calls?
Maybe - if that's more than we have now then it could be used as a "signal" to the site administrator to check the migration.
3) How would it handle an update migration, where there's really no way from outside of the migration to know if it's doing anything?
Is there a way to know form inside the migration? I noticed that the ajax is update regularly with throughput info - maybe we can define some sort of metric to check between each Ajax call?