<@ULVA73B9P> I am creating process workers from th...
# ask-marvin
j
@Marvin I am creating process workers from the command line. When I create 2 process workers on the same system, it appears they both attempt to use the port 8080 by default. This causes the workers to conflict over the same port. Is there a way I can configure them to use different ports?
m
It seems there isn't a direct answer in the Prefect documentation or GitHub issues about configuring different ports for multiple process workers. However, you can try setting environment variables to specify different ports for each worker. Typically, server ports are configurable via environment variables, but you'll need to consult the specific worker documentation or source code for exact details. Alternatively, you can specify different ports when starting each worker if the command-line interface supports it. You might want to explore the
prefect worker start
command options to see if there is a port configuration option available. For more information on workers, you can refer to the Prefect workers documentation. If you encounter persistent issues, consider raising this as a feature request or bug report in the Prefect GitHub repository.