Commit Graph

16 Commits

Author SHA1 Message Date
Christian Adams e033eb5aef add index for jobevent created 2019-04-03 14:27:22 -04:00
Jim Ladd 8c9544e5ed Add support for new ansible stats 2019-02-20 17:13:29 -08:00
Ryan Petrello 229e997e7e don't update parent event changed|failed in bulk (it's expensive) 2019-02-06 20:02:52 -05:00
Ryan Petrello daeeaf413a clean up unnecessary usage of the six library (awx only supports py3) 2019-01-25 00:19:48 -05:00
Ryan Petrello f223df303f convert py2 -> py3 2019-01-15 14:09:01 -05:00
Ryan Petrello 2acc488adf properly sanitize long event keys
see: https://github.com/ansible/tower/issues/1775
2018-08-27 13:40:26 -04:00
Jake McDermott 1b1df63415 add host_status_counts to adhoc command event 2018-07-09 10:13:39 -04:00
Jake McDermott 380bf77b63 move host_status_counts logic into event model 2018-07-09 10:13:31 -04:00
Ryan Petrello bb3b19e174 truncate certain event fields when they are overly long
see: https://github.com/ansible/tower/issues/1775
2018-05-14 14:02:17 -04:00
AlanCoding b7f280588c add handling for missing related items of events 2018-04-25 10:33:43 -04:00
Ryan Petrello 5fd5c95a1d only record task.args in the callback plugin if DISPLAY_ARGS_TO_STDOUT
see: https://github.com/ansible/awx/issues/1633
2018-04-03 10:52:55 -04:00
AlanCoding b803a6e557 Track emitted events on model 2018-03-14 07:53:02 -04:00
Ryan Petrello ac3ce82eb1 remove dead code
the code that persists `set_stat` data for workflows now lives elsewhere

related: https://github.com/ansible/awx/commit/d57470ce49f80afd6b510667be151b035f7b0e55
2018-02-20 14:14:23 -05:00
Ryan Petrello c6b6a3ad89 send and subcribe to summary events for all new events 2018-01-03 09:09:45 -05:00
Ryan Petrello 0b30e7907b change stdout composition to generate from job events on the fly
this approach totally removes the process of reading and writing stdout
files on the local file system at settings.JOBOUTPUT_ROOT when jobs are
run; now stdout content is only written on-demand as it's fetched for
the deprecated `stdout` endpoint

see: https://github.com/ansible/awx/issues/200
2018-01-03 09:09:43 -05:00
Ryan Petrello fc94b3a943 generalize stdout event processing to emit events for *all* job types
* introduces three new models: `ProjectUpdateEvent`,
  `InventoryUpdateEvent`, and `SystemJobEvent`
* simplifies the stdout callback management in `tasks.py` - now _all_
  job run types capture and emit events to the callback receiver
* supports stdout reconstruction from events for stdout downloads for
  _all_ job types
* configures `ProjectUpdate` runs to configure the awx display callback
  (so we can capture real playbook events for `project_update.yml`)
* ProjectUpdate, InventoryUpdate, and SystemJob runs no longer write
  text blobs to the deprecated `main_unifiedjob.result_stdout_text` column

see: https://github.com/ansible/awx/issues/200
2018-01-03 09:09:42 -05:00