Commit Graph

62 Commits

Author SHA1 Message Date
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
Chris Church
1b65a3256d AC-990 Disabled capturing hosts M2M associated with job events. 2014-02-06 11:25:51 -05:00
Chris Church
9f40862676 AC-990 Some query improvements for saving job events. 2014-02-05 19:19:26 -05:00
Chris Church
91cc144e87 AC-990 Updated callback plugin and related task to prevent missed/duplicate job events, catch exceptions and retry. Fixed task run_pexect method so that canceling a job will work. 2014-02-04 17:38:38 -05:00
Chris Church
32364ad055 AC-990 Add new task for saving all job events from a queue, updated callback plugin to send to queue, work on optimizing SQL that runs when saving a job event. 2014-02-03 17:05:03 -05:00
Matthew Jones
bf8c4b289a Don't raise an exception at the end of a task if we are running unit tests 2014-01-30 11:36:54 -05:00
Matthew Jones
280527f993 Enable canceling on certain levels.... fix up some unit tests 2014-01-30 10:54:54 -05:00
Matthew Jones
6afc584a4f Check for invalid tasks and mark created tasks as failed when constructing task chains 2014-01-30 01:19:49 -05:00
Matthew Jones
6c81d497de Fix some bugs and show more error detail on a current task when a previous task fails 2014-01-29 15:11:55 -05:00
Matthew Jones
db14daf5e5 Leave another TODO on the job runner, fix a misspelling on the project update hook 2014-01-29 14:23:57 -05:00
Matthew Jones
5c076529c0 Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks 2014-01-29 14:23:57 -05:00