Skip to content

Commit

Permalink
Log PID of run_bot process (#4382)
Browse files Browse the repository at this point in the history
This should allow us to figure out why certain processes are OOMing.

Related: b/376094981
  • Loading branch information
jonathanmetzman authored Nov 6, 2024
1 parent 85089fa commit 04ce380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/bot/startup/run_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from clusterfuzz._internal.base import dates
from clusterfuzz._internal.base import errors
from clusterfuzz._internal.base import task_utils
from clusterfuzz._internal.base import tasks as taskslib
from clusterfuzz._internal.base import tasks as thoaskslib
from clusterfuzz._internal.base import untrusted
from clusterfuzz._internal.base import utils
from clusterfuzz._internal.bot.fuzzers import init as fuzzers_init
Expand Down Expand Up @@ -192,6 +192,8 @@ def main():

fuzzers_init.run()

logs.info(f'PID is {os.getpid()}')

if environment.is_trusted_host(ensure_connected=False):
from clusterfuzz._internal.bot.untrusted_runner import host
host.init()
Expand Down

0 comments on commit 04ce380

Please sign in to comment.