add missing create partition for scm backed inv

* This will resolve missing project update job events issue
This commit is contained in:
chris meyers
2021-10-12 17:09:59 -04:00
parent 64811d0b6b
commit 611a537b55

View File

@@ -2655,6 +2655,7 @@ class RunInventoryUpdate(BaseTask):
celery_task_id=inventory_update.celery_task_id,
)
)
create_partition(local_project_sync.event_class._meta.db_table, start=local_project_sync.created)
# associate the inventory update before calling run() so that a
# cancel() call on the inventory update can cancel the project update
local_project_sync.scm_inventory_updates.add(inventory_update)