File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222 delete_keys为需要删除的key,类型: 元组/bool/string,支持正则; 常用于清空任务队列,否则重启时会断点续爬,如写成` delete_keys=True ` 也是可以的
2323
24- 1 . 手动修改任务分数为小于当前时间搓的分数
24+ 1 . 手动修改任务分数为小于当前时间戳的分数
2525
2626 ![ -w917] ( http://markdown-media.oss-cn-beijing.aliyuncs.com/2021/03/11/16154327722622.jpg )
2727
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def __input_data(self):
6363
6464 current_timestamp = tools .get_current_timestamp ()
6565
66- # 取任务,只取当前时间搓以内的任务 ,同时将任务分数修改为 current_timestamp + setting.REQUEST_LOST_TIMEOUT
66+ # 取任务,只取当前时间戳以内的任务 ,同时将任务分数修改为 current_timestamp + setting.REQUEST_LOST_TIMEOUT
6767 requests_list = self ._db .zrangebyscore_set_score (
6868 self ._tab_requests ,
6969 priority_min = "-inf" ,
Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ def emit_any(
427427 fields: influxdb的field的字段和值
428428 classify: 点的类别
429429 measurement: 存储的表
430- timestamp: 点的时间搓 ,默认为当前时间
430+ timestamp: 点的时间戳 ,默认为当前时间
431431
432432 Returns:
433433
@@ -458,7 +458,7 @@ def emit_counter(
458458 classify: 点的类别
459459 tags: influxdb的tag的字段和值
460460 measurement: 存储的表
461- timestamp: 点的时间搓 ,默认为当前时间
461+ timestamp: 点的时间戳 ,默认为当前时间
462462
463463 Returns:
464464
@@ -489,7 +489,7 @@ def emit_timer(
489489 classify: 点的类别
490490 tags: influxdb的tag的字段和值
491491 measurement: 存储的表
492- timestamp: 点的时间搓 ,默认为当前时间
492+ timestamp: 点的时间戳 ,默认为当前时间
493493
494494 Returns:
495495
@@ -520,7 +520,7 @@ def emit_store(
520520 classify: 点的类别
521521 tags: influxdb的tag的字段和值
522522 measurement: 存储的表
523- timestamp: 点的时间搓 ,默认为当前时间
523+ timestamp: 点的时间戳 ,默认为当前时间
524524
525525 Returns:
526526
You can’t perform that action at this time.
0 commit comments