mirror of
https://github.com/zdharma-continuum/zflai.git
synced 2026-09-10 07:06:16 -04:00
Renamed *_memory_keeper to -zflai-disk-jokey
This commit is contained in:
parent
c8a3ab3760
commit
9197f0fae1
|
|
@ -22,10 +22,8 @@ fi
|
|||
# Running (not much idle, that was checked above) ?
|
||||
(( ZFLAI_FD != 0 )) && return 0
|
||||
|
||||
# Not running, or closed to prevent race condition - start
|
||||
# a new agent. The ARGV0 assignment will not work untill
|
||||
# zflai_memory_keeper is a command not a function.
|
||||
builtin exec {ZFLAI_FD}> >(ARGV0=zflai-memory-keeper zflai_memory_keeper "$ZUID_ID" "$ZUID_CODENAME") || return 1
|
||||
# Not running, or closed to prevent race condition - start a new agent
|
||||
builtin exec {ZFLAI_FD}> >(-zflai-disk-jokey "$ZUID_ID" "$ZUID_CODENAME") || return 1
|
||||
|
||||
return 0
|
||||
|
||||
|
|
@ -5,9 +5,9 @@ typeset -g ZFLAI_SRC_DIR="${0:h}"
|
|||
|
||||
zmodload zsh/datetime
|
||||
zmodload zsh/system
|
||||
autoload -- zflai_check_start zflai_memory_keeper \
|
||||
autoload -- -zflai-disk-jokey -zflai_check_start -zflai_learn_table \
|
||||
-zflai_read_ini_file -zflai_read_db_defs -zflai_read_table_defs \
|
||||
-zflai_learn_table -zflai_store -zflai_sqlite_store
|
||||
-zflai_store -zflai_sqlite_store
|
||||
|
||||
typeset -g ZFLAI_FD=0 ZFLAI_NULL_FD=0 ZFLAI_LAST_ACTION="$EPOCHSECONDS" ZFLAI_KEEP_ALIVE=45
|
||||
|
||||
|
|
@ -26,13 +26,13 @@ function zflai_refresh_config {
|
|||
#
|
||||
# $1 - log message
|
||||
function zflai-log {
|
||||
zflai_check_start
|
||||
-zflai_check_start
|
||||
print -u $ZFLAI_FD -r -- "L $1"
|
||||
ZFLAI_LAST_ACTION="$EPOCHSECONDS"
|
||||
}
|
||||
|
||||
function zflai-ctable {
|
||||
zflai_check_start
|
||||
-zflai_check_start
|
||||
print -u $ZFLAI_FD -r -- "T $1"
|
||||
ZFLAI_LAST_ACTION="$EPOCHSECONDS"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue