question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure workers

See original GitHub issue

It would be great if the gunicorn workers could support uvicorn’s config options.

I would like to run a Django Channels project using them, but cannot do so at this time because the disable_lifespan option from #262 cannot be set.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
kubamicommented, May 4, 2020

Is the custom class with CONFIG_KWARGS still the best option (ha!)?

I see there is an --env-file parameter, but I am not sure if it’s possible to pass it to uvicorn from gunicorn.

For completeness there is a ticket for lifespan protocol in Django now as well: https://code.djangoproject.com/ticket/31508

3reactions
tomchristiecommented, Mar 4, 2019

We provide (undocumented) support for this now…

class CustomWorker(UvicornWorker):
    CONFIG_KWARGS = {...}

I guess I’ll leave the ticket open until we’ve documented this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure wrangler.toml
The configuration for a Worker can become complex when you define different environments, and each environment has its own configuration.
Read more >
Worker Configuration Properties
The following lists many of the configuration properties related to Connect workers. The first section lists common properties that can be set in...
Read more >
Reference Guide (1.2.48) - workers.properties configuration
Tomcat workers are defined in a properties file dubbed workers.properties and this tutorial explains how to work with it. Configuration File Basics. Defining ......
Read more >
Configure Controller and Workers
Alteryx Server can be configured in a basic setup, with all components running on the same machine, ... Configure Controller and Workers.
Read more >
5.4. Configure worker nodes in mod_jk
Next, you need to configure mod_jk workers file conf/workers.properties . ... The configuration file contains one section for each target servlet container ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found