Skip to content

Commit

Permalink
Fix opm registry serve command
Browse files Browse the repository at this point in the history
opm registry serve does not have --pprof-addr option, having this
option enabled makes opm calls failing for opm >1.40
  • Loading branch information
Tulsi Chandwani committed Jul 4, 2024
1 parent c7c59a6 commit 4f5c8fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions iib/workers/tasks/opm_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,10 @@ def opm_serve(
return result


@create_port_filelocks(port_purposes=["opm_port", "opm_pprof_port"])
@create_port_filelocks(port_purposes=["opm_port"])
def opm_registry_serve(
opm_port: int,
db_path: str,
opm_pprof_port: Optional[int] = None,
) -> Tuple[int, subprocess.Popen]:
"""
Locally start OPM registry service, which can be communicated with using gRPC queries.
Expand All @@ -389,9 +388,6 @@ def opm_registry_serve(
'-t',
'/dev/null',
]
if opm_pprof_port:
# by default opm uses the 127.0.0.1:6060
cmd.extend(["--pprof-addr", f"127.0.0.1:{str(opm_pprof_port)}"])

cwd = os.path.dirname(db_path)
result = (
Expand Down

0 comments on commit 4f5c8fb

Please sign in to comment.