def retry_in(period)
      return unless que_target

      if id = que_target.que_attrs[:id]
        values = [period]

        if e = que_target.que_error
          values << "#{e.class}: #{e.message}".slice(0, 500) << e.backtrace.join("\n").slice(0, 10000)
        else
          values << nil << nil
        end

        Que.execute :set_error, values << id
      end

      que_target.que_resolved = true
    end
def retry_in(period)
      return unless que_target

      if id = que_target.que_attrs[:id]
        values = [period]

        if e = que_target.que_error
          values << "#{e.class}: #{e.message}".slice(0, 500) << e.backtrace.join("\n").slice(0, 10000)
        else
          values << nil << nil
        end

        Que.execute :set_error, values << id
      end

      que_target.que_resolved = true
    end
Explicitly check for the job id in these helpers, because it won't exist
 if we're running synchronously.