|
- {
- "track": [
- {
- "step": 1,
- "desc": "启动延时线程",
- "module": "program.thread.delay_schedule",
- "class": "Start_thread",
- "method": "start_thread",
- "paramType": 0,
- "paramLocal": [
- "track_processing_queue"
- ]
- },
- {
- "step": 2,
- "desc": "加载",
- "module": "common.util.public.json_util",
- "class": "JsonUtil",
- "method": "load_json",
- "paramType": 0,
- "paramLocal": [
- "/root/algorithm/sign"
- ],
- "judge": 0,
- "jump": 2
- },
- {
- "step": 3,
- "desc": "获取任务",
- "module": "program.impl.redis_storage",
- "class": "RedisStorage",
- "method": "get_one_task",
- "paramType": 0,
- "paramLocal": [
- "local queue,value=KEYS[1],ARGV[1]\nlocal a=redis.call('TIME')\nlocal time=(a[1]*1000000+a[2])/1000 \nlocal element = redis.call('zrangebyscore', queue, 0, 9999999999999, 'limit', 0, 1)\nif table.getn(element)>0 then\nredis.call('zrem', queue, element[1])\nredis.call('zadd',value,time,element[1])\nend\nreturn element",
- 1,
- "track_task_queue",
- "track_processing_queue",
- "/root/algorithm/config.json"
- ],
- "judge": 0,
- "jump": 2
- },
- {
- "step": 4,
- "desc": "执行任务",
- "module": "program.exec.track.track",
- "class": "Track",
- "method": "execute",
- "paramType": 1,
- "param": [
- 3.2
- ]
- },
- {
- "step": 5,
- "desc": "保存数据",
- "module": "program.impl.redis_storage",
- "class": "RedisStorage",
- "method": "save_result",
- "paramType": 1,
- "paramLocal": [
- "track_finished_queue",
- "track_failed_queue",
- "/root/algorithm/config.json"
- ],
- "param": [
- 4.1,
- 4.2
- ],
- "jump": 2
- }
- ]
- }
|