Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BIBO (D) [1 BUG, 2 TODOs]
05-24-2021, 03:44 PM
Post: #51
RE: BIBO (D)
(10-12-2020 01:36 AM)lingu Wrote:  
(09-24-2020 01:05 PM)zhihao Wrote:  talk2thinker.sh

work() {
read $newcasepfn till meet blank line

Here backslash escape leads to trouble -- http://rar.shufangkeji.com:60380/showthr...3#pid43883

We should read the input without backslash escape interpretation -- 'read -r' instead of 'read'.

RR zhihao

--- working proactively, i've changed it in cod://bibo commit 6276848

good to me
Quote this message in a reply
06-03-2021, 06:32 PM
Post: #52
RE: BIBO (D)
We run sage_restart with a cron job with root on wp289-6. The cron job manifests as /etc/cron.d/cronsage owned by root with permission 644.

Code:
40 07 * * * sage source /home/sage/.bashrc && /home/sage/sage/bin/sage_restart

This is a system cron in user sage, and it seems the shell does not source .bashrc when running the job. Therefore, we need source .bashrc explicitly.
Find all posts by this user
Quote this message in a reply
06-03-2021, 06:33 PM
Post: #53
RE: BIBO (D)
(05-22-2021 01:28 PM)lingu Wrote:  
(05-22-2021 11:22 AM)zhihao Wrote:  update headopst:
BIBO use port 22,80,62818

How to make this info easy to find and use?

?
Find all posts by this user
Quote this message in a reply
08-10-2021, 01:42 PM
Post: #54
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote:  delete_case()
Code:
delete_case() {
    clear file $tspfn
    $reqcaseid = requested case id
    for each case; do
        set option $tycano, $reqtype and $reqcaseid for procone.py
    done
    auntie register tasks
    generate delete success response
}

currently delete is limit to 90 cases, and it is not in D info, suggest delete it in code tree

RR lingu

Code:
function delete_case() {
  flog "  deleting case"
  truncate -s0 $tspfn
  reqcaseid=`jq '.caseid' $newcasepfn`
  tonicnt=$casecnt
  if (( $tonicnt > 90 )); then
    tonicnt=90
  fi
Quote this message in a reply
08-10-2021, 08:14 PM
Post: #55
RE: BIBO (D)
lingu says it will call procone.py in the process of querying cases, but there seems only sacli is called. I can't find the call.
Quote this message in a reply
08-10-2021, 08:23 PM
Post: #56
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote:  query_case()
Code:
query_case() {
    clear file $tspfn
    for each case; do
        set option $tycano for procone.py
    done
    auntie register tasks
    generate query result response
}

i think we should move this out to another thread for clarity.

The current workflow is recorded in http://rar.shufangkeji.com:60380/showthr...p?tid=9227
Find all posts by this user
Quote this message in a reply
08-12-2021, 10:28 AM
Post: #57
RE: BIBO (D)
bibo generate blank json in commit 215052698dbe45a0e18a7a4ac4feac23aa21a7bf
Code:
-rw-rw-rw- 1 sage sage 156 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_126.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_127.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_128.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_129.txt.seen
-rw-rw-rw- 1 sage sage 156 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_12.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_130.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_131.txt.seen
-rw-rw-rw- 1 sage sage 156 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_132.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_133.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_134.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_135.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_136.txt.seen
-rw-rw-rw- 1 sage sage   0 Aug 12 00:52 /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_137.txt.seen
[root@wp289b-1 test]# less /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_132.txt.seen
  {
   "keys": [

   ],
   "caseid": "___",
   "caseyear": ,
   "casetitle": "",
   "casetype": "",
   "caserate": "",
   "caseaction": "",
   "score":
  }
[root@wp289b-1 test]# less /thinker/net/ynet/soft/bibo/procuratorate/cases/resprev/res_132.txt.seen
Quote this message in a reply
08-12-2021, 11:13 AM
Post: #58
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote:  delete_case()
Code:
delete_case() {
    clear file $tspfn
    $reqcaseid = requested case id
    for each case; do
        set option $tycano, $reqtype and $reqcaseid for procone.py
    done
    auntie register tasks
    generate delete success response
}

delete logic above and update to below to make it can handle more than 90 cases
Code:
newcasepfn: content of new delete request
SACLI: sacli program
bibo_helper: bibo helper node ip

$SACLI --helper $bibo_helper match $newcasepfn

RR lingu
Quote this message in a reply
08-12-2021, 02:44 PM
Post: #59
RE: BIBO (D)
(06-03-2021 06:33 PM)lingu Wrote:  
(05-22-2021 01:28 PM)lingu Wrote:  
(05-22-2021 11:22 AM)zhihao Wrote:  update headopst:
BIBO use port 22,80,62818

How to make this info easy to find and use?

?

record in U info is better.
Quote this message in a reply
08-13-2021, 09:02 AM
Post: #60
RE: BIBO (D)
(08-12-2021 11:13 AM)zhihao Wrote:  
(09-24-2020 01:05 PM)zhihao Wrote:  delete_case()
Code:
delete_case() {
    clear file $tspfn
    $reqcaseid = requested case id
    for each case; do
        set option $tycano, $reqtype and $reqcaseid for procone.py
    done
    auntie register tasks
    generate delete success response
}

delete logic above and update to below to make it can handle more than 90 cases
Code:
newcasepfn: content of new delete request
SACLI: sacli program
bibo_helper: bibo helper node ip

$SACLI --helper $bibo_helper match $newcasepfn

RR lingu

OK
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: