Commit Graph

72 Commits

Author SHA1 Message Date
Matthew Jones
514cd4a1db Initial api side implementation of the survey spec 2014-09-09 11:08:40 -04:00
Matthew Jones
b5763f078d Add relaunch capability to a job. fill in related links for various serializers 2014-09-05 14:02:55 -04:00
Matthew Jones
58b71ca9f9 Implement /launch endpoint on job template
Partial implementation of:

https://trello.com/c/7uXHs7ze/14-require-admin-to-be-able-to-run-a-job-without-a-job-template
2014-09-04 13:26:00 -04:00
Matthew Jones
046561ecaa add counter to jobevent object sourced from callback ansible plugin 2014-08-19 15:50:41 -04:00
Matthew Jones
b9c515ac2b Emit an event 'summary_complete' when jobhostsummary is finished calculating 2014-08-19 12:07:41 -04:00
Matthew Jones
620fc56f57 Fix a reference issue in the task impact job determination logic 2014-08-12 09:48:41 -04:00
Matthew Jones
8940003a88 Limit the task impact to just one host if we are launching from a callback 2014-08-11 12:04:52 -04:00
Luke Sneeringer
cc2e45b44e Fix job templates credential checks. 2014-07-29 13:09:56 -05:00
Luke Sneeringer
627c6f029e Adding sensible ordering to common models.
https://trello.com/c/tTwRM2VV/102-tower-api-teams-endpoint-does-not-sort-consistently
2014-07-24 15:01:16 -05:00
Matthew Jones
6ee61d6c72 Make it to where we can track JobHostSummary objects for hosts that don't necessarily exist in inventory 2014-07-14 15:34:46 -04:00
Matthew Jones
4b34401ca9 Set the host_name on JobHostSummary when the job host summary is saved 2014-07-11 16:39:59 -04:00
Matthew Jones
f93e60979f Add a host_name field to JobHostSummary and migrate to it, so we have at
least that information in job data if the host has been removed
2014-07-11 16:03:14 -04:00
Chris Church
6813a082f0 Add refresh_inventory flag for job_template callback to refresh inventory before trying to find a matching host. 2014-07-03 15:59:56 -04:00
Matthew Jones
1e00529fac Fix an issue where we weren't creating job events for hosts that didn't
exist in our inventory
2014-06-27 13:47:48 -04:00
Matthew Jones
41e1d809b5 Refactor job event collection to build and manage an internal cache of
potential parent values to reduce the number of queries to the database
2014-06-24 10:37:06 -04:00
Matthew Jones
8d78755ef4 Fix some invalid assumptions about hosts and jobs where we assume a job
template will always be available
2014-06-23 13:39:09 -04:00
Matthew Jones
c7ed154149 Implement AC-1279, rename vars_prompt_on_launch to ask_variables_on_launch
Conflicts:
	awx/main/models/jobs.py
2014-05-15 10:26:11 -04:00
Matthew Jones
a19f388e2d In case job_template is null handle that case for vars prompt 2014-05-12 14:50:58 -04:00
Matthew Jones
22984f91cc Make sure we notify vars_update_on_launch from job details 2014-05-12 14:50:58 -04:00
Chris Church
5e484b2503 Update where host_name field is set on job events. 2014-05-11 23:43:40 -04:00
Chris Church
fcdcf8e988 AC-1262 Add vars_prompt_on_launch field to job template. 2014-05-11 23:03:46 -04:00
Matthew Jones
bc7567a341 Include hostname in the event data at the top level if it's available 2014-05-02 10:34:51 -04:00
Matthew Jones
ac94c11fd7 Adjust inventory computed field calculations to happen in the celery context 2014-04-30 14:38:08 -04:00
Chris Church
a49c627e53 AC-504 Migration to add roles to existing job events. 2014-04-16 23:54:03 -04:00
Chris Church
2546cbdbb6 AC-504 Capture role when available for job events. 2014-04-15 00:22:57 -04:00
Matthew Jones
4a535e5404 Updating dependency check for jobs, project updates, and inventory updates 2014-03-31 17:16:49 -04:00
Chris Church
35e4bd477c AC-1040 Cleanup old code in tasks, combine methods from unified job subclasses into base classes. 2014-03-28 22:07:24 -04:00
Matthew Jones
b665345070 Support passing the schedule when signaling start so we record which
schedule this came from
2014-03-27 22:45:51 -04:00
Chris Church
d8383a4d69 AC-1076 Exposed scm_update_cache_timeout for projects, added needs_update_on_launch property to project and inventory source models. 2014-03-26 16:40:55 -04:00
Chris Church
8ad72426b4 AC-1040 Work on unified job serializers. 2014-03-25 22:04:37 -04:00
Matthew Jones
74602f1009 Check project and inventory source update cache timeout when deciding
whether or not to spawn an instance of either one as a dependency
2014-03-25 16:21:46 -04:00
Matthew Jones
1dc3aa8ab1 Relax job dependency conflicts raised by customer support
If both jobs are callbacks whose limits are different allow them to
not conflict with each other when deciding launch dependencies
2014-03-25 16:20:27 -04:00
Matthew Jones
03249e59f3 Fix up job run types so that we aren't auto-starting new jobs. Fix up
job dependency generator to call the right new methods for generating
inventory and project updates
2014-03-25 15:21:30 -04:00
Chris Church
296e87a632 AC-1040 Removed extra model definitions used for generating migrations. 2014-03-25 09:38:25 -04:00
Chris Church
02af35dffd AC-1040 Updates to get unit tests to pass. 2014-03-24 18:13:53 -04:00
Chris Church
1a7dc83479 AC-1040 Inserted migration 34 from master, defined additional model changes needed, regenerated previous migrations 34/35/36/37 as 35/36/37/38. 2014-03-24 17:11:09 -04:00
Chris Church
e6f3032b94 AC-1040 Give unified jobs a copy of config from unified job templates to capture the settings as they were when the job is run. 2014-03-24 17:11:09 -04:00
Chris Church
691942cac3 AC-1040 Unified jobs updates to get unit tests to pass (hopefully). 2014-03-24 17:04:26 -04:00
Chris Church
0ee5c07738 AC-1040 Update jobs models and migrations (work in progress). 2014-03-24 17:02:43 -04:00
Matthew Jones
61ab197b3a If we fail the prestart check on a job, record the conditions by which we fail 2014-03-24 14:57:53 -04:00
Matthew Jones
3e88894f85 Temporarily relax task notification and rely on polling 2014-03-23 18:37:51 -04:00
Matthew Jones
bec301c2a8 Shift task start signal into an asynchronous task so we don't deadlock trying to update the same record from the task runner while waiting for the signal to be received from the signaler 2014-03-22 11:18:25 -04:00
Matthew Jones
14e138a7bd Bypass task runner system in normal job start tests... we'll test it another way so assume we want to just start the job right away 2014-03-19 11:09:14 -04:00
Matthew Jones
28c9d77f29 Fix some bugs found from unit tests 2014-03-14 15:54:27 -04:00
Matthew Jones
e6209d4d4f Make sure we check arguments passed to signal start before allowing it
to proceed.
2014-03-13 14:43:47 -04:00
Matthew Jones
3fe31828a8 Cleanup for unit tests, working command unit test 2014-03-13 10:48:01 -04:00
Matthew Jones
116cf902b5 Fix a bug processing dependent tasks. Fix an issue where we weren't
calculating the task impact of a job properly
2014-03-11 16:12:22 -04:00
Matthew Jones
f5ea85e0fc Fix some task runner bugs and round out the implementation 2014-03-11 15:26:48 -04:00
Matthew Jones
85b6aa2262 Rebasing for initial task system work. Current work towards actual task
running flow
2014-03-10 16:07:20 -04:00
Chris Church
11d8387120 AC-990 Make job event filtering by host work even when not capturing hosts M2M. Also fix unit tests to skip checking hosts M2M. 2014-02-06 15:07:42 -05:00