◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#6112 (Run linod and asgi in a single job)

by Luc Saffre · in Developers · assigned to Luc Saffre

Kokkuvõte

Children

Kommentaarid

  • 1 aasta, 5 kuud ago by Luc Saffre about #6112 (Run linod and asgi in a single job) : Okay I'll be quiet now as long as I haven't understood the basics of channels routing.
  • 1 aasta, 5 kuud ago by Sharif Mehedi about #6112 (Run linod and asgi in a single job) : we currently have the following in linod.routing.py: ``` protocol_mapping = dict( websocket=SessionMiddlewareStack(AuthMiddleware(URLRouter(routes))), channel=ChannelNameRouter({CHANNEL_NAME: LinodConsumer.as_asgi()}), http=get_asgi_application(), )
    application = ...
  • 1 aasta, 5 kuud ago by Luc Saffre about #6112 (Run linod and asgi in a single job) : @8lurry your first reaction was to say that it's not possible, but I ask you to have a second dive into it. I still believe it should be possible when I see the following code in the routing.py file:
    protocol_mapping = dict( websocket=SessionMiddlewareStack(AuthMiddleware(URLRouter(routes))), ...
  • 1 aasta, 5 kuud ago by Luc Saffre about #6112 (Run linod and asgi in a single job) : Everything would get much easier if we had a single supervisor process per Lino site. The asgi.py script generated by getlino does "from lino.modlib.linod.routing import application" even for sites that don't have linod installed.
  • 1 aasta, 5 kuud ago by Luc Saffre about #6112 (Run linod and asgi in a single job) : Created new Ticket #6112 (Run linod and asgi in a single job).