mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 20:06: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')
|
||||
|
||||
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