#2708 closed enhancement (fixed)

FIX - "execute_if" setting to run hook after import failed in wcst_import

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.2
Component: wcst_import Version: 10.2
Keywords: Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

Currently, hooks in ingredients file run only when files imported successfully.
However, it is also useful when the hooks run when files failed to import. Use case, to move / rename the failed import files.

So hooks will have a new setting, called executed_if with one of values: import_succeeded (default) or import_failed)

For example:

    {
      "description": "Remove imported files.",
      "when": "after_import",
      "execute_if": "import_failed",
      "cmd": "rm -rf \"${file:path}\""
    }

Change History (1)

comment:1 by Bang Pham Huu, 20 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.