Blogpost

4 minute read

Scenario triggers

Learn how to set up automated scenario triggers.

Introducing Scenario Triggers: Enhancing Automation and Flexibility in Our Platform

In our continuous effort to improve automation and optimize efficiency, we are proud to announce the launch of a new feature in our platform: Scenario Triggers. This addition significantly enhances the functionality of scenarios, offering users a more intelligent and flexible way to manage their actions and processes.

Understanding Scenarios

Within our platform, scenarios are a sequence of actions executed in a specific order. They serve a multitude of purposes, such as clearing cache, deployments, updating parameters, installing updates, restarting services, and even your own written custom actions. Previously, these scenarios could be triggered manually or scheduled for execution at predefined times. While useful, this approach lacked a certain level of automation intelligence that many of our users desired.

Introducing Scenario Triggers

Scenario Triggers elevate the functionality of scenarios by allowing users to define specific conditions that automatically trigger a scenario. This means you can now set your scenarios to execute based on real-time events or specific changes in your application, rather than relying solely on manual initiation or fixed schedules.

Key Benefits of Scenario Triggers

  • Enhanced Automation: Automate scenarios based on real-time conditions, reducing the need for manual intervention and fixed schedules.
  • Increased Flexibility: Define custom triggers that fit your unique requirements, ensuring scenarios run exactly when needed.
  • Cost Optimization: Efficiently manage application run times, automatically starting or stopping applications to minimize costs.

Practical Use Case: Automating Application Management

A powerful application of Scenario Triggers is in automating the management of application lifecycle events. Here’s how it works:

Triggering Scenarios on Application Launch

Imagine you have an application that needs to perform specific actions whenever it starts. With Scenario Triggers, you can set the launch of the application as a trigger to execute a scenario. For example, when an application is launched, the associated scenario can automatically execute tasks such as updating parameters or deploying new features, ensuring the application is ready to perform its functions as soon as it launches.

Triggering Scenarios on Application Stop

Similarly, you may want to run certain actions before an application stops. By setting a trigger for the stop event, scenarios can execute tasks like saving state, clearing cache, or other necessary shutdown procedures, ensuring a clean and orderly stop of the application.

Starting Applications via Scenario Triggers

Sometimes, you need an application to wake up for specific tasks. For instance, a nightly update scenario might be triggered by a webhook. With Scenario Triggers, if the application isn’t already running, the scenario can automatically start the application, perform the update, and then stop the application once the tasks are completed. This not only ensures the update is done but also optimizes resource usage by not keeping the application running unnecessarily.

Flexible Trigger Options

Scenario Triggers provide several versatile options:

  • Application Start: Set the launch of an application as a trigger to execute a scenario.
  • Application Stop: Automatically run scenarios before an application stops.
  • Scenario Initiation: Trigger the start of an application if a scenario is called and the application is not already running.
  • Custom Conditions: Define specific conditions, such as webhooks or system events, to trigger scenarios.

Conclusion

Scenario Triggers offer a powerful enhancement to our platform, giving you more control and flexibility over your automated processes. By allowing scenarios to be triggered based on real-time events and specific conditions, you can streamline your operations, optimize costs, and improve overall efficiency. We are confident that this new feature will greatly benefit your workflows and look forward to seeing how you leverage Scenario Triggers to achieve your automation goals.

Ready to give it a try? Read our documentation to help you set up the triggers.

Want to find out what we can do for you?