mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 15:14:45 -03:30
* Model changes for instance last_seen field to replace modified * Break up refresh_capacity into smaller units * Rename execution node methods, fix last_seen clustering * Use update_fields to make it clear save only affects capacity * Restructing to pass unit tests * Fix bug where a PATCH did not update capacity value
28 lines
838 B
Python
28 lines
838 B
Python
# Generated by Django 2.2.20 on 2021-08-12 13:55
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0152_instance_node_type'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='instance',
|
|
name='last_seen',
|
|
field=models.DateTimeField(
|
|
editable=False,
|
|
help_text='Last time instance ran its heartbeat task for main cluster nodes. Last known connection to receptor mesh for execution nodes.',
|
|
null=True,
|
|
),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='instance',
|
|
name='memory',
|
|
field=models.BigIntegerField(default=0, editable=False, help_text='Total system memory of this instance in bytes.'),
|
|
),
|
|
]
|