mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Use modified to check if job should be sent to analytics
It can take several hours for a job to go from pending to successful/failed state and we need to also send the job with a changed state, otherwise the analytics will be incorrect.
This commit is contained in:
parent
907da2ae61
commit
b7227113be
@ -277,7 +277,7 @@ def copy_tables(since, full_path):
|
||||
FROM main_unifiedjob
|
||||
JOIN django_content_type ON main_unifiedjob.polymorphic_ctype_id = django_content_type.id
|
||||
JOIN main_organization ON main_organization.id = main_unifiedjob.organization_id
|
||||
WHERE main_unifiedjob.created > {}
|
||||
WHERE main_unifiedjob.modified > {}
|
||||
AND main_unifiedjob.launch_type != 'sync'
|
||||
ORDER BY main_unifiedjob.id ASC) TO STDOUT WITH CSV HEADER'''.format(since.strftime("'%Y-%m-%d %H:%M:%S'"))
|
||||
_copy_table(table='unified_jobs', query=unified_job_query, path=full_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user