任务优先度是什么?

任务优先度是什么?

任务优先度是提升任务在系统排序过程中的位置,优先度分为1-4个等级,所以任务默认为1,然后数值越大排名越高,任务排名越靠前。

比如说平台一共有1000个任务在线,你的任务是最后一个创建的,那么你的任务初始排名就是1000,那就是你的任务最后才会被领取到,这样就会造成任务不能第一时间被领取完成。

优先度越高排名越高,如果你设置任务优先度为4,1000个任务只有你自己优先度为4那么这个任务就是排名第一,第一个被用户领取。也能第一时间被领取。

其他常见问题

更多
array(38) {
  ["USER"] => string(3) "www"
  ["HOME"] => string(9) "/home/www"
  ["PHP_APP_DEBUG"] => string(0) ""
  ["HTTP_CF_CONNECTING_IP"] => string(13) "23.20.157.174"
  ["HTTP_ACCEPT"] => string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  ["HTTP_USER_AGENT"] => string(39) "CCBot/2.0 (http://commoncrawl.org/faq/)"
  ["HTTP_CF_VISITOR"] => string(17) "{"scheme":"http"}"
  ["HTTP_X_FORWARDED_PROTO"] => string(4) "http"
  ["HTTP_CF_RAY"] => string(20) "3665452026b72468-IAD"
  ["HTTP_X_FORWARDED_FOR"] => string(13) "23.20.157.174"
  ["HTTP_CF_IPCOUNTRY"] => string(2) "US"
  ["HTTP_ACCEPT_ENCODING"] => string(4) "gzip"
  ["HTTP_CONNECTION"] => string(10) "Keep-Alive"
  ["HTTP_HOST"] => string(12) "seoyanfa.com"
  ["PATH_INFO"] => string(9) "wenti/37/"
  ["REDIRECT_STATUS"] => string(3) "200"
  ["SERVER_NAME"] => string(9) "127.0.0.1"
  ["SERVER_PORT"] => string(2) "80"
  ["SERVER_ADDR"] => string(14) "172.17.152.114"
  ["REMOTE_PORT"] => string(5) "27594"
  ["REMOTE_ADDR"] => string(14) "162.158.78.155"
  ["SERVER_SOFTWARE"] => string(12) "nginx/1.13.0"
  ["GATEWAY_INTERFACE"] => string(7) "CGI/1.1"
  ["REQUEST_SCHEME"] => string(4) "http"
  ["SERVER_PROTOCOL"] => string(8) "HTTP/1.1"
  ["DOCUMENT_ROOT"] => string(15) "/www/web/public"
  ["DOCUMENT_URI"] => string(10) "/index.php"
  ["REQUEST_URI"] => string(10) "/wenti/37/"
  ["SCRIPT_NAME"] => string(10) "/index.php"
  ["CONTENT_LENGTH"] => string(0) ""
  ["CONTENT_TYPE"] => string(0) ""
  ["REQUEST_METHOD"] => string(3) "GET"
  ["QUERY_STRING"] => string(0) ""
  ["SCRIPT_FILENAME"] => string(25) "/www/web/public/index.php"
  ["FCGI_ROLE"] => string(9) "RESPONDER"
  ["PHP_SELF"] => string(19) "/index.phpwenti/37/"
  ["REQUEST_TIME_FLOAT"] => float(1496017039.4946)
  ["REQUEST_TIME"] => int(1496017039)
}
}