Created
April 19, 2016 08:03
-
-
Save skateman/ca29398163ccb477eeaa45292624be6c to your computer and use it in GitHub Desktop.
Snippet to start a MiqWorker separately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MiqWebsocketWorker.delete_all | |
require_relative 'config/environment' | |
class MiqWebsocketWorker::Runner | |
def heartbeat | |
end | |
end | |
row = MiqWebsocketWorker.create_worker_record | |
guid = row.guid | |
runner = MiqWebsocketWorker::Runner.start_worker(:guid => guid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternate port: