Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Info

This article is not public info. In fact it is not required for users to implement individual traps. The below example is too specific for public use.

Instead, the generic solution provided by the JS7 - FAQ - Does JS7 reliably kill running jobs is sufficient for most users.

Introduction

  • Traps are used in shell jobs for the situation that a job should not be aborted immediately, but should be terminated after having performed a cleanup operation such as:
    • removing temporary files created by the job,
    • disconnecting from a database.
  • Traps are available for the Unix Shell, not for JVM Jobs and not for Windows Shell Jobs.
  • Display feature availability
    StartingFromRelease2.1.1

...