Skip to content

Instantly share code, notes, and snippets.

@Unkas82
Created November 12, 2016 08:18
Show Gist options
  • Select an option

  • Save Unkas82/685461659e0cd598e46cbd39b4ee3ce1 to your computer and use it in GitHub Desktop.

Select an option

Save Unkas82/685461659e0cd598e46cbd39b4ee3ce1 to your computer and use it in GitHub Desktop.
class HardWorker
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence do
hourly(1)
end
def perform
uu = User.new
uu.name = "evilbot#{DateTime.now.hour}"
uu.email = "test@example.com"
uu.role_id = 1
uu.password = '123456'
uu.save
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment