Avdept
Avdept

Reputation: 2289

Beanstalkd server not running its jobs

I'm trying to start beanstalk server, and made 1 job to test it, but instead i got nothing. Here is my code:

require 'stalker'
include Stalker


job 'test.job' do
  somefile = File.new("somefile")

end

Im using stalker gem to connect ruby and beanstalkd. Any ideas what am i doing wrong?

Upvotes: 0

Views: 166

Answers (1)

rewritten
rewritten

Reputation: 16435

Unless you open the file and write something into it, or something else, it's quite difficult to observe the job doing anything. Log something into STDOUT, write something into the file or anything else, and then you will be able to see the job executing...

Upvotes: 1

Related Questions