select * from indexation_server where `id` = "2" limit 1 SELECT `id` FROM `indexation_control` WHERE `type` = "1" and `status` = "1" and `list_id` = "2" LIMIT 1 INSERT INTO `indexation_control` (`type`, `list_id`, `server`, `action`, `status`, `start_time`, `last_action_ad`) VALUES ("1", "2", "index-ad","0", "1", "1500651781", "1500651781") select * from indexation_server where `id` = "2" limit 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651781 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651781 - 15)) and attempts < "1" and addition_time >= 1500651781 - 86400 and last_attempt <= 1500651781 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651781", status = "2", stream_id = "64", number_select = "0" WHERE `id` IN(55768,55767,55766,55765,55764,55763,55762,55761,55760,55759,55758,55757,55756,55755,55754,55753,55752,55751,55750,55749,55748,55747,55746,55745,55744) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651781' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651787 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651787 - 15)) and attempts < "1" and addition_time >= 1500651787 - 86400 and last_attempt <= 1500651787 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651787", status = "2", stream_id = "64", number_select = "1" WHERE `id` IN(55743,55742,55741,55740,55739,55738,55737,55736,55735,55734,55733,55732,55731,55730,55729,55728,55727,55726,55725,55724,55723,55722,55721,55720,55719) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651789' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651790 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651790 - 15)) and attempts < "1" and addition_time >= 1500651790 - 86400 and last_attempt <= 1500651790 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651790", status = "2", stream_id = "64", number_select = "2" WHERE `id` IN(55718,55717,55716,55715,55714,55713,55712,55711,55710,55709,55708,55707,55706,55705,55704,55703,55702,55701,55700,55699,55698,55697,55696,55695,55694) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651790' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651796 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651796 - 15)) and attempts < "1" and addition_time >= 1500651796 - 86400 and last_attempt <= 1500651796 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651796", status = "2", stream_id = "64", number_select = "3" WHERE `id` IN(55693,55692,55691,55690,55689,55688,55687,55686,55685,55684,55683,55682,55681,55680,55679,55678,55677,55676,55675,55674,55673,55672,55671,55670,55669) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651797' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651798 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651798 - 15)) and attempts < "1" and addition_time >= 1500651798 - 86400 and last_attempt <= 1500651798 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651798", status = "2", stream_id = "64", number_select = "4" WHERE `id` IN(55668,55667,55666,55665,55664,55663,55662,55661,55660,55659,55658,55657,55656,55655,55654,55653,55652,55651,55650,55649,55648,55647,55646,55645,55644) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651798' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651798 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651798 - 15)) and attempts < "1" and addition_time >= 1500651798 - 86400 and last_attempt <= 1500651798 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651798", status = "2", stream_id = "64", number_select = "5" WHERE `id` IN(55643,55642,55641,55640,55639,55638,55637,55636,55635,55634,55633,55632,55631,55630,55629,55628,55627,55626,55625,55624,55623,55622,55621,55620,55619) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651798' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651799 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651799 - 15)) and attempts < "1" and addition_time >= 1500651799 - 86400 and last_attempt <= 1500651799 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651799", status = "2", stream_id = "64", number_select = "6" WHERE `id` IN(55618,55617,55616,55615,55614,55613,55612,55611,55610,55609,55608,55607,55606,55605,55604,55603,55602,55601,55600,55599,55598,55597,55596,55595,55594) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651799' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651799 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651799 - 15)) and attempts < "1" and addition_time >= 1500651799 - 86400 and last_attempt <= 1500651799 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651799", status = "2", stream_id = "64", number_select = "7" WHERE `id` IN(55593,55592,55591,55590,55589,55588,55587,55586,55585,55584,55583,55582,55581,55580,55579,55578,55577,55576,55575,55574,55573,55572,55571,55570,55569) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651799' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651800 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651800 - 15)) and attempts < "1" and addition_time >= 1500651800 - 86400 and last_attempt <= 1500651800 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651800", status = "2", stream_id = "64", number_select = "8" WHERE `id` IN(55568,55567,55566,55565,55564,55563,55562,55561,55560,55559,55558,55557,55556,55555,55554,55553,55552,55551,55550,55549,55548,55547,55546,55545,55544) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651800' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651801 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651801 - 15)) and attempts < "1" and addition_time >= 1500651801 - 86400 and last_attempt <= 1500651801 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651801", status = "2", stream_id = "64", number_select = "9" WHERE `id` IN(55543,55542,55541,55540,55539,55538,55537,55536,55535,55534,55533,55532,55531,55530,55529,55528,55527,55526,55525,55524,55523,55522,55521,55520,55519) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651801' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651801 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651801 - 15)) and attempts < "1" and addition_time >= 1500651801 - 86400 and last_attempt <= 1500651801 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651801", status = "2", stream_id = "64", number_select = "10" WHERE `id` IN(55518,55517,55516,55515,55514,55513,55512,55511,55510,55509,55508,55507,55506,55505,55504,55503,55502,55501,55500,55499,55498,55497,55496,55495,55494) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651801' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651802 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651802 - 15)) and attempts < "1" and addition_time >= 1500651802 - 86400 and last_attempt <= 1500651802 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651802", status = "2", stream_id = "64", number_select = "11" WHERE `id` IN(55493,55492,55491,55490,55489,55488,55487,55486,55485,55484,55483,55482,55481,55480,55479,55478,55477,55476,55475,55474,55473,55472,55471,55470,55469) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651802' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651802 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651802 - 15)) and attempts < "1" and addition_time >= 1500651802 - 86400 and last_attempt <= 1500651802 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651802", status = "2", stream_id = "64", number_select = "12" WHERE `id` IN(55468,55467,55466,55465,55464,55463,55462,55461,55460,55459,55458,55457,55456,55455,55454,55453,55452,55451,55450,55449,55448,55447,55446,55445,55444) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651802' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651803 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651803 - 15)) and attempts < "1" and addition_time >= 1500651803 - 86400 and last_attempt <= 1500651803 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651803", status = "2", stream_id = "64", number_select = "13" WHERE `id` IN(55443,55442,55441,55440,55439,55438,55437,55436,55435,55434,55433,55432,55431,55430,55429,55428,55427,55426,55425,55424,55423,55422,55421,55420,55419) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651803' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651803 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651803 - 15)) and attempts < "1" and addition_time >= 1500651803 - 86400 and last_attempt <= 1500651803 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651803", status = "2", stream_id = "64", number_select = "14" WHERE `id` IN(55418,55417,55416,55415,55414,55413,55412,55411,55410,55409,55408,55407,55406,55405,55404,55403,55402,55401,55400,55399,55398,55397,55396,55395,55394) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651803' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651804 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651804 - 15)) and attempts < "1" and addition_time >= 1500651804 - 86400 and last_attempt <= 1500651804 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651804", status = "2", stream_id = "64", number_select = "15" WHERE `id` IN(55393,55392,55391,55390,55389,55388,55387,55386,55385,55384,55383,55382,55381,55380,55379,55378,55377,55376,55375,55374,55373,55372,55371,55370,55369) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651804' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651805 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651805 - 15)) and attempts < "1" and addition_time >= 1500651805 - 86400 and last_attempt <= 1500651805 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651805", status = "2", stream_id = "64", number_select = "16" WHERE `id` IN(55368,55367,55366,55365,55364,55363,55362,55361,55360,55359,55358,55357,55356,55355,55354,55353,55352,55351,55350,55349,55348,55347,55346,55345,55344) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651805' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651805 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651805 - 15)) and attempts < "1" and addition_time >= 1500651805 - 86400 and last_attempt <= 1500651805 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651805", status = "2", stream_id = "64", number_select = "17" WHERE `id` IN(55343,55342,55341,55340,55339,55338,55337,55336,55335,55334,55333,55332,55331,55330,55329,55328,55327,55326,55325,55324,55323,55322,55321,55320,55319) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500651805' WHERE id = '64' LIMIT 1 SELECT action FROM indexation_control WHERE id = "64" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500651806 - 15 and stream_id = "64" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500651806 - 15)) and attempts < "1" and addition_time >= 1500651806 - 86400 and last_attempt <= 1500651806 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500651806", status = "2", stream_id = "64", number_select = "18" WHERE `id` IN(55318,55317,55316,55315,55314,55313,55312,55311,55310,55309,55308,55307,55306,55305,55304,55303,55302,55301,55300,55299,55298,55297,55296,55295,55294)