mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 02:00:01 -03:30
Enable partition pruning when fetching job's events
This commit is contained in:
@@ -1004,7 +1004,10 @@ class UnifiedJob(
|
|||||||
}[tablename]
|
}[tablename]
|
||||||
|
|
||||||
def get_event_queryset(self):
|
def get_event_queryset(self):
|
||||||
return self.event_class.objects.filter(**{self.event_parent_key: self.id})
|
return self.event_class.objects.filter(**{
|
||||||
|
self.event_parent_key: self.id,
|
||||||
|
'job_created': self.created
|
||||||
|
})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def event_processing_finished(self):
|
def event_processing_finished(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user