Sha256: 0ea7e1a85e9151cb8113647cb48f48aa2dfb956a95b12b45775dc5e7c327a586

Contents?: true

Size: 266 Bytes

Versions: 9

Compression:

Stored size: 266 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Job < ApplicationJob
  class_timeout 30 # must be less than or equal to the SNS Topic default timeout
  sqs_event "hello-queue"
  def <%= options[:name] %>
    puts "event #{JSON.dump(event)}"
  end
end
<% end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jets-5.0.7 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.6 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.5 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.4 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.3 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.2 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.1 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.0 lib/jets/generators/job/templates/event_types/sqs.rb.tt
jets-5.0.0.beta1 lib/jets/generators/job/templates/event_types/sqs.rb.tt