001package org.gbif.api.model.crawler;
002
003/**
004 * This enum lists the reasons why a crawl is finished.
005 */
006public enum FinishReason {
007  /**
008   * This status means that we were able to finish the crawl without any fatal errors and without exhausting retries.
009   * There could still have been intermittent errors but we managed to reach the end of an endpoint or a DwC-A file.
010   */
011  NORMAL,
012
013  /**
014   * This status means that the user requested an abort of the crawl and that is the reason this crawl is done.
015   */
016  USER_ABORT,
017
018  /**
019   * This status means that we had to abort the crawl for any abnormal reason (endpoint down, not a valid archive,
020   * ...). To find the exact reason(s) you need to look at the logs to see past errors.
021   */
022  ABORT,
023
024  /**
025   * Crawling has stopped because the source data was not modified since the last crawl.
026   */
027  NOT_MODIFIED,
028
029  /**
030   * This status means that we don't know why the crawl aborted. This is a sign of a programming error and should be
031   * investigated.
032   */
033  UNKNOWN
034}