mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Further purging of cleanup_deleted
This commit is contained in:
@@ -5,7 +5,7 @@ Make a POST request to this resource to launch the system job template.
|
|||||||
An extra parameter `extra_vars` is suggested in order to pass extra parameters
|
An extra parameter `extra_vars` is suggested in order to pass extra parameters
|
||||||
to the system job task.
|
to the system job task.
|
||||||
|
|
||||||
For example on `cleanup_jobs`, `cleanup_deleted`, and `cleanup_activitystream`:
|
For example on `cleanup_jobs` and `cleanup_activitystream`:
|
||||||
|
|
||||||
`{"days": 30}`
|
`{"days": 30}`
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations
|
from django.db import migrations, models
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
|
|
||||||
from awx.api.license import feature_enabled
|
from awx.api.license import feature_enabled
|
||||||
@@ -96,4 +96,14 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.RunPython(create_system_job_templates, migrations.RunPython.noop),
|
migrations.RunPython(create_system_job_templates, migrations.RunPython.noop),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='systemjob',
|
||||||
|
name='job_type',
|
||||||
|
field=models.CharField(default=b'', max_length=32, blank=True, choices=[(b'cleanup_jobs', 'Remove jobs older than a certain number of days'), (b'cleanup_activitystream', 'Remove activity stream entries older than a certain number of days'), (b'cleanup_facts', 'Purge and/or reduce the granularity of system tracking data')]),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='systemjobtemplate',
|
||||||
|
name='job_type',
|
||||||
|
field=models.CharField(default=b'', max_length=32, blank=True, choices=[(b'cleanup_jobs', 'Remove jobs older than a certain number of days'), (b'cleanup_activitystream', 'Remove activity stream entries older than a certain number of days'), (b'cleanup_facts', 'Purge and/or reduce the granularity of system tracking data')]),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1169,7 +1169,6 @@ class SystemJobOptions(BaseModel):
|
|||||||
SYSTEM_JOB_TYPE = [
|
SYSTEM_JOB_TYPE = [
|
||||||
('cleanup_jobs', _('Remove jobs older than a certain number of days')),
|
('cleanup_jobs', _('Remove jobs older than a certain number of days')),
|
||||||
('cleanup_activitystream', _('Remove activity stream entries older than a certain number of days')),
|
('cleanup_activitystream', _('Remove activity stream entries older than a certain number of days')),
|
||||||
('cleanup_deleted', _('Purge previously deleted items from the database')),
|
|
||||||
('cleanup_facts', _('Purge and/or reduce the granularity of system tracking data')),
|
('cleanup_facts', _('Purge and/or reduce the granularity of system tracking data')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user