mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 12:26:25 -06:00
#12067: Fix ordering for JobResult replication
This commit is contained in:
parent
f2005ee4ea
commit
7fc8a3da14
@ -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