class Rufus::Job

def initialize (scheduler, job_id, params, &block)

def initialize (scheduler, job_id, params, &block)
    @scheduler = scheduler
    @block = block
    if job_id
        @job_id = job_id
    else
        JOB_ID_LOCK.synchronize do
            @job_id = @@last_given_id
            @@last_given_id = @job_id + 1
        end
    end
    @params = params
    #@tags = Array(tags).collect { |tag| tag.to_s }
        # making sure we have an array of String tags
    @tags = Array(params[:tags])
        # any tag is OK
end