BIBO -- O
|
09-23-2020, 01:05 PM
Post: #51
|
|||
|
|||
RE: BIBO
(09-23-2020 12:39 PM)zhihao Wrote:(09-03-2020 11:53 PM)lingu Wrote: procone.py Pls make both delete and query logic functins. Quote: rename insert.json as insert2.json You can use rid --insitu to do this. Otherwise, there may be complication when you have already a file insert2.json in the dir. You should judge whether the file needs to be deleted. You can simply use re.search to search for the case ID and then judge whether the case ID matches the case ID to be deleted. Quote: create file insert.json How do you makes sure the new insert.json does not match any keywords? Quote: else should have RR'ed. |
|||
09-23-2020, 01:26 PM
(This post was last modified: 09-23-2020 01:28 PM by lingu.)
Post: #52
|
|||
|
|||
RE: BIBO
(09-23-2020 12:58 PM)zhihao Wrote:(09-23-2020 12:14 PM)lingu Wrote:Quote:tellThinker() { Make insert a function. Quote: case "delete": That's too vague. Again, make delete a function. Quote: done make query a function too. Quote: } Generally OK. Quote:(09-23-2020 12:14 PM)lingu Wrote: Also, design and implement the delete logic as we discussed -- for delete, rename the original file to be a different name, create a file in the original name and make sure it does not match any keywords. Record a todo for he 'Later' part so that we can manage the task well. |
|||
09-23-2020, 01:33 PM
Post: #53
|
|||
|
|||
RE: BIBO
(09-23-2020 01:05 PM)lingu Wrote:(09-23-2020 12:39 PM)zhihao Wrote:(09-03-2020 11:53 PM)lingu Wrote: procone.py 已修改并更新首文 Code: main() { (09-23-2020 01:05 PM)lingu Wrote:Quote: rename insert.json as insert2.json 已添加判断语句,判断caseid匹配后删除 Code: delete() { (09-23-2020 01:05 PM)lingu Wrote:Quote: create file insert.json 这个我不理解什么意思,是要让procone.py可以获取key,但是值都要为空吗 ? (09-23-2020 01:05 PM)lingu Wrote:Quote: else 已添加RR |
|||
09-23-2020, 01:58 PM
Post: #54
|
|||
|
|||
RE: BIBO
(09-23-2020 01:26 PM)lingu Wrote:(09-23-2020 12:58 PM)zhihao Wrote:(09-23-2020 12:14 PM)lingu Wrote:Quote:tellThinker() { 已设为函数 Code: insert() { (09-23-2020 01:26 PM)lingu Wrote:Quote: case "delete": 已设为函数 Code: delete() { (09-23-2020 01:26 PM)lingu Wrote:Quote: done 已设为函数 Code: query() { (09-23-2020 01:26 PM)lingu Wrote:Quote: } 已将修改后的如下内容更新首文 tellThinker() informs think about the request. Code: tellThinker() { insert() Code: insert() { delete() Code: delete() { query() Code: query() { (09-23-2020 01:26 PM)lingu Wrote:Quote:(09-23-2020 12:14 PM)lingu Wrote: Also, design and implement the delete logic as we discussed -- for delete, rename the original file to be a different name, create a file in the original name and make sure it does not match any keywords. add "[todo] implement delete function in procone.py" in headpost |
|||
09-23-2020, 03:34 PM
Post: #55
|
|||
|
|||
RE: BIBO | |||
09-23-2020, 03:45 PM
Post: #56
|
|||
|
|||
RE: BIBO | |||
09-23-2020, 05:07 PM
Post: #57
|
|||
|
|||
RE: BIBO
在procone.py和talk2thinker.sh中添加并push了删除语句
在 zhihao@g1b-2 screen simpleserv内开启simpleserv服务 Code: [zhihao@g1b-2 procuratorate]$ ./simpleserv.sh limbo30-1内提交del_zengxingliang.json请求,返回404错误 Code: [zhihao@limbo30-1 processed]$ cat del_zengxingliang.json 在zhihao@g1b-2 screen zh-scr内检查日志,看到talk2thinker.log日志和talk2thinker.sh的不符,检查后发现日志是从文件thinkres.py 154行开始记录。 Code: [zhihao@g1b-2 zhihao]$ ll simpleserv.log talk2thinker-x.log simpleserv.log Code: working [0923-16:00:05] talk2thinker.log Code: [2020-09-23 16:00:08] talk2thinker starts |
|||
09-23-2020, 05:43 PM
(This post was last modified: 09-23-2020 05:47 PM by lingu.)
Post: #58
|
|||
|
|||
RE: BIBO
(09-23-2020 05:07 PM)zhihao Wrote: 在zhihao@g1b-2 screen zh-scr内检查日志,看到talk2thinker.log日志和talk2thinker.sh的不符,检查后发现日志是从文件thinkres.py 154行开始记录。 Yes -- some messages are confusing. I have changed them in cod://prada commit e228632. I think you should look into procone's log to see whether deletion took place. I looked into one log file. Code: [2020-09-23 16:00:07] procone starts But I am not sure if it is deleting. |
|||
09-23-2020, 06:20 PM
Post: #59
|
|||
|
|||
RE: BIBO
(09-23-2020 05:43 PM)lingu Wrote:(09-23-2020 05:07 PM)zhihao Wrote: 在zhihao@g1b-2 screen zh-scr内检查日志,看到talk2thinker.log日志和talk2thinker.sh的不符,检查后发现日志是从文件thinkres.py 154行开始记录。 我生成的log中,procone.log最后修改日期都为20200919. Code: [zhihao@g1b-2 zhihao]$ pwd |
|||
09-23-2020, 06:27 PM
(This post was last modified: 09-23-2020 06:28 PM by lingu.)
Post: #60
|
|||
|
|||
RE: BIBO
(09-23-2020 06:20 PM)zhihao Wrote: need go to /thinker/local/today/users/sage2 because sage runs the individual tasks and sage runs using user sage2. I suggest you split D info to anthoher thread and split the BIBO system on g1b as another thread. This is the overview thread for BIBO and we do not want it to be too crowded. |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: