mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 11:36:29 +00:00
63 lines
820 B
MySQL
63 lines
820 B
MySQL
|
-- name: procs-find-build
|
||
|
|
||
|
SELECT
|
||
|
proc_id
|
||
|
,proc_build_id
|
||
|
,proc_pid
|
||
|
,proc_ppid
|
||
|
,proc_pgid
|
||
|
,proc_name
|
||
|
,proc_state
|
||
|
,proc_error
|
||
|
,proc_exit_code
|
||
|
,proc_started
|
||
|
,proc_stopped
|
||
|
,proc_machine
|
||
|
,proc_platform
|
||
|
,proc_environ
|
||
|
FROM procs
|
||
|
WHERE proc_build_id = $1
|
||
|
|
||
|
-- name: procs-find-build-pid
|
||
|
|
||
|
SELECT
|
||
|
proc_id
|
||
|
,proc_build_id
|
||
|
,proc_pid
|
||
|
,proc_ppid
|
||
|
,proc_pgid
|
||
|
,proc_name
|
||
|
,proc_state
|
||
|
,proc_error
|
||
|
,proc_exit_code
|
||
|
,proc_started
|
||
|
,proc_stopped
|
||
|
,proc_machine
|
||
|
,proc_platform
|
||
|
,proc_environ
|
||
|
FROM procs
|
||
|
WHERE proc_build_id = $1
|
||
|
AND proc_pid = $2
|
||
|
|
||
|
-- name: procs-find-build-ppid
|
||
|
|
||
|
SELECT
|
||
|
proc_id
|
||
|
,proc_build_id
|
||
|
,proc_pid
|
||
|
,proc_ppid
|
||
|
,proc_pgid
|
||
|
,proc_name
|
||
|
,proc_state
|
||
|
,proc_error
|
||
|
,proc_exit_code
|
||
|
,proc_started
|
||
|
,proc_stopped
|
||
|
,proc_machine
|
||
|
,proc_platform
|
||
|
,proc_environ
|
||
|
FROM procs
|
||
|
WHERE proc_build_id = $1
|
||
|
AND proc_ppid = $2
|
||
|
AND proc_name = $3
|