Last active
November 24, 2016 14:14
-
-
Save krmbzds/76692ac6dfa627e5965849d21033100f to your computer and use it in GitHub Desktop.
Sidekiq Worker Snippet
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
<snippet> | |
<content><![CDATA[ | |
class $1Worker | |
include Sidekiq::Worker | |
sidekiq_options :queue => :${2:default}, :retry => ${3:1}, :backtrace => ${4:false} | |
def perform($5) | |
$6 | |
end | |
end | |
]]></content> | |
<tabTrigger>worker</tabTrigger> | |
<scope>source.ruby</scope> | |
<description>Sidekiq Worker</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment