Displaying 1 result from an estimated 1 matches for "campaignstart".
Did you mean:
  campaign_start
  
2008 Jan 17
3
periodic scheduling
...I just ran without
scheduling. I manually started all my workers by calling
MiddleMan.new_worker in a script, passing in the "sleep time", and
then implemented each worker something like this:
  def do_work(args)
    @args = args
    @sleep_time = @args[:sleep_time]
    logger.info "CampaignStarter #{jobkey} started"
    while(true)
      # do the actual work in another method
      main_work
      sleep @sleep_time
    end
  end
That seemed to work pretty well for the most part.
So now, looking at the current version.  I''m guessing that it''s
probably not OK for me...