Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to kill via driver_id #223

Open
github-actions bot opened this issue Jul 21, 2022 · 0 comments
Open

Add option to kill via driver_id #223

github-actions bot opened this issue Jul 21, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

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
@github-actions github-actions bot added the todo label Jul 21, 2022
@caspiano caspiano removed their assignment Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant