mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
move the partition data migration to be a post-upgrade async process
this copies the approach we took with the bigint migration
This commit is contained in:
@@ -310,9 +310,8 @@ class TaskManager:
|
||||
|
||||
def post_commit():
|
||||
if task.status != 'failed' and type(task) is not WorkflowJob:
|
||||
# Ensure that job event partition exists
|
||||
create_partition('main_jobevent')
|
||||
|
||||
# Before task is dispatched, ensure that job_event partitions exist
|
||||
create_partition(task.event_class._meta.db_table, start=task.created)
|
||||
task_cls = task._get_task_class()
|
||||
task_cls.apply_async(
|
||||
[task.pk],
|
||||
|
||||
Reference in New Issue
Block a user