MCPcopy Create free account
hub / github.com/Facets-cloud/flow / recordAutoRunLaunched

Function recordAutoRunLaunched

internal/app/auto.go:166–174  ·  view source on GitHub ↗

recordAutoRunLaunched writes the 'running' bookkeeping after a successful launch.

(db *sql.DB, slug string, pid int, logPath string)

Source from the content-addressed store, hash-verified

164 if err != nil {
165 return 0, "", err
166 }
167 return pid, logPath, nil
168}
169
170// recordAutoRunLaunched writes the 'running' bookkeeping after a
171// successful launch.
172func recordAutoRunLaunched(db *sql.DB, slug string, pid int, logPath string) error {
173 now := flowdb.NowISO()
174 _, err := db.Exec(
175 `UPDATE tasks SET auto_run_status='running', auto_run_pid=?, auto_run_started=?,
176 auto_run_finished=NULL, auto_run_log=?, updated_at=? WHERE slug=?`,
177 pid, now, logPath, now, slug,

Callers 1

cmdDoFunction · 0.85

Calls 1

NowISOFunction · 0.92

Tested by

no test coverage detected