Sha256: b2b0ae1a5e94e7b048a3ec4eceb90e2230ad42029a5fb3306c8fba90db4ec2ac

Contents?: true

Size: 418 Bytes

Versions: 12

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

require_relative '../../punk'
require 'sidekiq'
require 'sidekiq-cron'

PUNK.init(task: 'worker', config: { app: { name: 'Roadie' } }).exec

Sidekiq.logger = SemanticLogger['PUNK::SKQ']
Sidekiq.logger.class.alias_method(:with_context, :tagged)

path = File.expand_path(File.join(PUNK.get.app.path, '..', 'config', 'schedule.yml'))
Sidekiq::Cron::Job.load_from_hash(YAML.load_file(path))

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
punk-0.3.6 lib/punk/core/worker.rb
punk-0.3.5 lib/punk/core/worker.rb
punk-0.3.4 lib/punk/core/worker.rb
punk-0.3.3 lib/punk/core/worker.rb
punk-0.3.2 lib/punk/core/worker.rb
punk-0.3.1 lib/punk/core/worker.rb
punk-0.2.0 lib/punk/core/worker.rb
punk-0.1.4 lib/punk/core/worker.rb
punk-0.1.3 lib/punk/core/worker.rb
punk-0.1.2 lib/punk/core/worker.rb
punk-0.1.0 lib/punk/core/worker.rb
punk-0.0.3 lib/punk/core/worker.rb