ActionHero v19.2.0 Release Notes

Release Date: 2019-07-19 // almost 5 years ago
  • Actionhero v19.2.0

    Boot Loader for Actionhero

    When creating a new Actionhero project, there is a now a top-level boot.js file. You can use this new file to load or instantiate troublesome packages into your project that really want to be the first thing you load. Packages like newrelic or dotenv are these types of packages. Another use-case would be to configure your environment via an external source.

    👀 You can see the contents of boot.js to add to an existing project here https://github.com/actionhero/actionhero/blob/master/bin/templates/boot.js

    Via #1311 by @chimmelb

    reEnqueuePeriodicTaskIfException

    Now, if a periodic task fails, it will still be run again. This behavior is what the majority of Actionhero uses had expected was happening all along, so hopefully this change is less surprising for new Acitonhero users.

    0️⃣ A new option has been added to tasks, reEnqueuePeriodicTaskIfException with the default value of true. If you want your tasks to not be re-enqueued should they throw an exception, you can set reEnqueuePeriodicTaskIfException = false.

    Via #1309 and 72fb343 by @dasagan

    ⚡️ Updated logging levels

    ⚡️ This change updates Actionhero's internal logging levels to more closely match The syslog protocol (RFC 5424). The details can be seen in the Pull Request.

    Via #1314 by @aurasalexander

    api.config.general.developmentModeForceRestart

    ⚡️ This new option updates ActionHero's development mode to "full" restart when an Action or Task changes, rather than a soft restart. This can be handy if you add a new initializer, param, or route.

    Via #1313 by @aurasalexander