mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -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')
|
||||
|
||||
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(
|
||||
Job(
|
||||
object_type=job_result.obj_type,
|
||||
|
Loading…
Reference in New Issue
Block a user