mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
remove channel group model
* Websocket user session <-> group subscription membership now resides in Redis rather than the database.
This commit is contained in:
committed by
Ryan Petrello
parent
14320bc8e6
commit
3b9e67ed1b
16
awx/main/migrations/0110_delete_channelgroup.py
Normal file
16
awx/main/migrations/0110_delete_channelgroup.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Generated by Django 2.2.8 on 2020-02-17 14:50
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0109_v370_instance_ip_address'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.DeleteModel(
|
||||||
|
name='ChannelGroup',
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -58,7 +58,6 @@ from awx.main.models.workflow import ( # noqa
|
|||||||
WorkflowJob, WorkflowJobNode, WorkflowJobOptions, WorkflowJobTemplate,
|
WorkflowJob, WorkflowJobNode, WorkflowJobOptions, WorkflowJobTemplate,
|
||||||
WorkflowJobTemplateNode, WorkflowApproval, WorkflowApprovalTemplate,
|
WorkflowJobTemplateNode, WorkflowApproval, WorkflowApprovalTemplate,
|
||||||
)
|
)
|
||||||
from awx.main.models.channels import ChannelGroup # noqa
|
|
||||||
from awx.api.versioning import reverse
|
from awx.api.versioning import reverse
|
||||||
from awx.main.models.oauth import ( # noqa
|
from awx.main.models.oauth import ( # noqa
|
||||||
OAuth2AccessToken, OAuth2Application
|
OAuth2AccessToken, OAuth2Application
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
from django.db import models
|
|
||||||
|
|
||||||
|
|
||||||
class ChannelGroup(models.Model):
|
|
||||||
group = models.CharField(max_length=200, unique=True)
|
|
||||||
channels = models.TextField()
|
|
||||||
@@ -451,11 +451,6 @@ CELERYBEAT_SCHEDULE = {
|
|||||||
# 'isolated_heartbeat': set up at the end of production.py and development.py
|
# 'isolated_heartbeat': set up at the end of production.py and development.py
|
||||||
}
|
}
|
||||||
|
|
||||||
ASGI_AMQP = {
|
|
||||||
'INIT_FUNC': 'awx.prepare_env',
|
|
||||||
'MODEL': 'awx.main.models.channels.ChannelGroup',
|
|
||||||
}
|
|
||||||
|
|
||||||
# Django Caching Configuration
|
# Django Caching Configuration
|
||||||
CACHES = {
|
CACHES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|||||||
Reference in New Issue
Block a user