   componentDidMount: ->
     @scrollNode = ReactDOM.findDOMNode(@refs.scrollContainer)
     @currentOffset = parseInt @props.offset
+    if @props.taskState not in Utils.TERMINAL_TASK_STATES
+      @startTailingPoll()
 
   componentDidUpdate: (prevProps, prevState) ->
     if @tailingPoll

      @setState
        isLoading: true
        loadingText: 'Fetching'
      @props.fetchPrevious(=>
        @setState
          isLoading: false
          loadingText: ''

    @refs.lines.scrollTo(0)

  scrollToBottom: ->
    console.log 'bot'
    @refs.lines.scrollTo(@state.linesToRender.length)

module.exports = Contents
