mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
#12067: Fix ordering for JobResult replication
This commit is contained in:
parent
82080ef491
commit
61e2073775
@ -9,7 +9,7 @@ def replicate_jobresults(apps, schema_editor):
|
|||||||
JobResult = apps.get_model('extras', 'JobResult')
|
JobResult = apps.get_model('extras', 'JobResult')
|
||||||
|
|
||||||
jobs = []
|
jobs = []
|
||||||
for job_result in JobResult.objects.iterator(chunk_size=100):
|
for job_result in JobResult.objects.order_by('pk').iterator(chunk_size=100):
|
||||||
jobs.append(
|
jobs.append(
|
||||||
Job(
|
Job(
|
||||||
object_type=job_result.obj_type,
|
object_type=job_result.obj_type,
|
||||||
|
Loading…
Reference in New Issue
Block a user