Skip to content

Instantly share code, notes, and snippets.

@blomquisg
Created January 5, 2018 19:37
Show Gist options
  • Save blomquisg/3c4b541015c26afe2b95be1b27ab04f1 to your computer and use it in GitHub Desktop.
Save blomquisg/3c4b541015c26afe2b95be1b27ab04f1 to your computer and use it in GitHub Desktop.
Provider
--------
def destroy
managers.each { |m| m.destroy }
super
end
Manager
-------
def destroy
disable! if enabled?
kill_ems_workers
super
end
Worker
------
def kill
Process.kill(9, pid).wait!
destroy
end
@blomquisg
Copy link
Author

Providers don't have a disable concept today. And, we might be moving away from the provider concept as a whole. So, we probably aren't going to add it. Jason, me, Adam, and others need to have a good long discussion on the whole provider/manager concept. We just keep putting it on the back burner.

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