Skip to content

Add option to kill via driver_id #223

Description

@github-actions

driver_key = params["path"]?.presence

driver_id = params["driver_id"]?.presence

# TODO: Add option to kill via driver_id

require "./application"

require "../placeos-core/resources/modules"

module PlaceOS::Core::Api
  class Chaos < Application
    base "/api/core/v1/chaos/"

    getter module_manager : Resources::Modules { Resources::Modules.instance }

    # Terminate a process by executable path
    post "/terminate", :terminate do
      # TODO: Add option to kill via driver_id
      # driver_key = params["path"]?.presence
      # driver_id = params["driver_id"]?.presence
      driver_key = params["path"]
      edge_id = params["edge_id"]?.presence

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions