|
@@ -25,6 +25,7 @@ class StartGetRecommend(object):
|
|
|
current_time = datetime.datetime.now()
|
|
|
formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
for task in tasks:
|
|
|
+ time.sleep(0.5)
|
|
|
task = orjson.loads(task)
|
|
|
values = [[task['partition'], task['video_id'], task['channel'], task['time'], task["type"],formatted_time]]
|
|
|
Feishu.insert_columns("JY4esfYvShLbTkthHEqcTw5qnsh", "f53916", "ROWS", 1, 2)
|
|
@@ -49,6 +50,6 @@ async def run():
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- asyncio.run(StartGetRecommend.run())
|
|
|
- # loop = asyncio.get_event_loop()
|
|
|
- # loop.run_until_complete(run())
|
|
|
+ # asyncio.run(StartGetRecommend.run())
|
|
|
+ loop = asyncio.get_event_loop()
|
|
|
+ loop.run_until_complete(run())
|