Matthew Jones
be3996b9be
Add the job event id to the socket emitter payload
2014-04-21 23:35:44 -04:00
Matthew Jones
1d52f7cc9d
Fix up more status emissions
2014-04-21 15:02:12 -04:00
Matthew Jones
c0f821cdbf
Make sure we actually emit the status during status change websocket events
2014-04-21 14:56:41 -04:00
Matthew Jones
444430ed5b
Use singular keyfile
2014-04-21 12:16:22 -04:00
Matthew Jones
2177d6feab
Fix up event emission to send the right thigns
2014-04-18 14:42:23 -04:00
Matthew Jones
007df8c5a6
Fix up some minor issues so we can display job events
2014-04-18 13:58:06 -04:00
Matthew Jones
210b1dce2e
Be more specific on the model
2014-04-18 13:51:36 -04:00
Matthew Jones
003104cbdb
Add a post-save hook for emitting job event notifications over the websocket channel
2014-04-18 13:38:43 -04:00
Matthew Jones
92739bc86c
Emit just one message type for status change events:
2014-04-18 10:54:20 -04:00
Matthew Jones
6ede456715
Send signals when jobs/tasks change states
2014-04-18 09:58:36 -04:00
Matthew Jones
09f9b18d3f
Mention 1.4.9 release in readme
2014-04-17 16:31:11 -04:00
Matthew Jones
c793ff0d95
Small updates to the event triggers and javascript to show individual endpoints
2014-04-17 14:55:44 -04:00
Matthew Jones
647001546a
Support ssl listener for socketio service, add such service to setup playbook, add handler for external notifications, implement basic namespaces for other supported events
2014-04-17 12:36:34 -04:00
Matthew Jones
f06dde4fa3
Fix AC-1202... when marking a schedule as inactive also mark it as disabled. When filtering schedules for what should run make sure we exclude inactive schedules also
2014-04-17 10:14:53 -04:00
Matthew Jones
7c43dced0f
a bit better pane selection when splitting
2014-04-16 15:30:49 -04:00
Matthew Jones
69583a1b07
Import socketio service work and updates to documentation and setup procedures
2014-04-16 15:27:04 -04:00
Matthew Jones
9901658f02
Update some setup things for the new callback script
2014-04-16 11:17:16 -04:00
Matthew Jones
8ffdc6de29
Rename tower retry script and reframe documentation
2014-04-16 11:17:04 -04:00
Matthew Jones
1d28f73687
Include the actuall callback retry script
2014-04-15 16:02:59 -04:00
Matthew Jones
6b3d857e49
Add an example script that will retry a tower callback request if it does not receive a 202. will retry 5 times with a 5 second interval between each run
2014-04-15 16:02:45 -04:00
Matthew Jones
fd1e35c6d9
Show new vendored packages in the site packages readme
2014-04-15 11:54:41 -04:00
Matthew Jones
99f2f65be2
Fix issue AC-1047, don't use pk when verifying that the user exists and isn't anonymous
2014-04-15 11:46:16 -04:00
Matthew Jones
507d2e158d
Vendor gevent's socketio and websocket modules
2014-04-15 11:18:48 -04:00
Matthew Jones
78e208dcdb
Use id instead of pk or checking for anonymous user
2014-04-07 17:11:11 -04:00
Matthew Jones
3876e06a8d
Fix AC-1155, make sure we check for anonymous user because that's what will come back through the rest api
2014-04-07 14:49:45 -04:00
Matthew Jones
064dd6dc08
Fix up unit tests where we no longer allow posting a schedule to an
...
inventory source that is not a cloud source
2014-04-07 14:18:59 -04:00
Matthew Jones
2fe1ae189a
Fix issue AC-1152... disallow creating a schedule for non-cloud
...
inventory sources
2014-04-07 13:35:40 -04:00
Matthew Jones
3481366fcf
Include more detail about schedules in activity streams by linking to
...
their parent object in summary_fields and related
2014-04-06 11:58:56 -04:00
Matthew Jones
1e50f0cc24
Don't add other jobs to the dependency task chain such that if we are
...
running a job (as opposed to an inventory update or project update) they
may proceed even if the job failed.
2014-04-06 02:29:06 -04:00
Matthew Jones
221db9b296
Fix up tower warning log to work with unit tests, local testing, and production
2014-04-04 23:10:48 -04:00
Matthew Jones
c60f89f884
Update tower warning log for current production and production updates
2014-04-04 22:53:50 -04:00
Matthew Jones
b222fc02ee
Add finished datetime detail to last_job and recent_jobs summary
...
fields. Closes AC-1135
2014-04-04 17:04:32 -04:00
Matthew Jones
e197bfeb01
Add a specific tower warnings file in the tower home directory.
...
Configure the api viewer to emit warnings for 4XX and 5XX status codes
into that file. Configure it for use on a production system. Closes AC-685
2014-04-04 16:48:56 -04:00
Matthew Jones
f56b716b8f
Switch to using the celery persistent beat scheduler to guard against
...
the database not being available yet or restarting and taking the celery
scheduler with it
2014-04-04 15:47:45 -04:00
Matthew Jones
b51a867b5f
More fixes for the license obfuscation
2014-04-03 17:16:03 -04:00
Matthew Jones
05613c1bea
Make sure we are pulling in the right license class after obfuscation
2014-04-03 17:04:48 -04:00
Matthew Jones
7202905d0e
Fix an issue I created with the config view trying to import the old
...
license reader
2014-04-03 16:30:05 -04:00
Matthew Jones
2587fe9f18
Obfuscate the license engine... implements AC-1069
2014-04-03 15:49:14 -04:00
Matthew Jones
641c8d8e05
Check the result of signal_start when adding a schedule and mark the
...
task as failed if it failed to signal the starting
2014-04-03 13:56:00 -04:00
Matthew Jones
711c1824a3
Fix issue AC-1112... disallow multiple dtstart and rrule segments
2014-04-03 13:14:53 -04:00
Matthew Jones
2e4f62d0a6
Reimplement last_run detection in the periodic Tower scheduler task to
...
not rely on celery's last run information
2014-04-02 21:51:45 -04:00
Matthew Jones
feb1bb6e8a
Wrap up schedule rrule documentation
2014-04-02 14:54:53 -04:00
Matthew Jones
8659eab1d3
Include dependent file in schedules list docs
2014-04-02 14:34:08 -04:00
Matthew Jones
5f7ea664f2
Adding some Schedule documentation
2014-04-02 14:30:13 -04:00
Matthew Jones
d190aa3001
Wrap up rrule validation for scheduler
2014-04-02 11:44:49 -04:00
Matthew Jones
3e2e682658
Re-do the way we perform dtend calculation by parsing the until value
...
instead of attempting to read the last item from the list in cases where
the list is very long
2014-04-02 11:44:49 -04:00
Matthew Jones
4069a33ab0
Scheduler unit tests
2014-04-01 17:12:46 -04:00
Matthew Jones
306544dca0
Fix up schedule access control by referencing the right base object
2014-04-01 16:48:45 -04:00
Matthew Jones
54599578a0
Fix up ScheduleAccess queryset to fit between schedules and unified jobs
2014-04-01 13:13:53 -04:00
Matthew Jones
49f6bd3e1c
Fix imports for using Job in some models
2014-04-01 13:02:33 -04:00
Matthew Jones
7bc7362299
Complete rrule validation
2014-04-01 11:22:42 -04:00
Matthew Jones
2e6457b887
Recalculate dtstart and dtend on every save now that it is idempotwhatever
2014-04-01 10:09:52 -04:00
Matthew Jones
2913ce21d2
Make sure we store the real start value for a schedule
2014-03-31 17:35:49 -04:00
Matthew Jones
4a535e5404
Updating dependency check for jobs, project updates, and inventory updates
2014-03-31 17:16:49 -04:00
Matthew Jones
60b399409a
Update old schedules if we missed them
2014-03-31 15:33:25 -04:00
Matthew Jones
43ae60d2f4
Fix up issue associating type of unified job template summary fields
2014-03-31 15:29:44 -04:00
Matthew Jones
8c020ddd0b
Add type to unified_job_template summary fields
2014-03-31 14:58:34 -04:00
Matthew Jones
9e898953dd
Revert start_args when launching job
2014-03-31 12:45:57 -04:00
Matthew Jones
7e5ac7b3fa
Make sure we shoehorn start args to empty string
2014-03-31 11:38:54 -04:00
Matthew Jones
96a4752f2f
Be more strict when verifying dtstart
2014-03-31 11:33:49 -04:00
Matthew Jones
a3ca786758
Fix some import errors and filter errors when updating unified_jobs with
...
schedule information
2014-03-31 10:26:12 -04:00
Matthew Jones
9b440c5209
Fix an issue where POST to schedules would no longer work. Populate
...
some more summary fields
2014-03-28 22:11:02 -04:00
Matthew Jones
c46f1de347
Some initial validation logic and documentation on what we require/reject
2014-03-28 14:37:50 -04:00
Matthew Jones
c1734d74cf
Use unified job set for joining the schedule and unified jobs
2014-03-28 12:52:28 -04:00
Matthew Jones
799e8d30ba
Integrate main schedules resource
...
Integrated scheduled jobs list
Implement updating ancillary details on dependent models
Further cleanup
2014-03-28 12:50:35 -04:00
Matthew Jones
c1d314ed6f
Running scheduled items now works
2014-03-27 22:45:51 -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
Matthew Jones
65bb42c2f2
Make dtstart field somewhat optional
2014-03-27 16:01:09 -04:00
Matthew Jones
107fc85110
Initial scheduler integration
2014-03-27 15:53:45 -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
Matthew Jones
bb630fddbc
Fix up error handler callback to include the task that actually failed
2014-03-25 15:01:54 -04:00
Matthew Jones
7196262987
Update graph generator to look right
2014-03-25 15:01:54 -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
ec2dfa3c74
Rename link for unified jobs list
2014-03-24 12:01:01 -04:00
Matthew Jones
2d443bad26
Change the api v1 resource for unified jobs
2014-03-24 11:58:05 -04:00
Matthew Jones
b35cee7b72
Eliminate the 'pending' status and remove dependency checks that
...
necessitated it during pre-run... tighten the transaction wrapper
to just be used when actually updating model details
2014-03-24 11:48:28 -04:00
Matthew Jones
0f1fc77be3
Switch up the api end point for unified jobs
2014-03-24 11:48:04 -04:00
Matthew Jones
af231cc8b7
Resolve can_start from the client side and the signaler side
2014-03-24 09:47:36 -04:00
Matthew Jones
6941d89502
Tasks are only 'can_start' if they are in the 'new' state
2014-03-23 19:56:28 -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
4b9059388e
Switch to using a network socket instead of an ipc socket, closes issue AC-1088
2014-03-21 14:44:22 -04:00
Matthew Jones
e66fa7cead
Fix up some bugs for the UI's dummy endpoints
2014-03-20 22:09:21 -04:00
Matthew Jones
f3e9be636c
Add some dummy api end points for House
2014-03-20 17:59:58 -04:00
Matthew Jones
6f11502528
Emit log messages by default on the task runner
2014-03-20 11:46:58 -04:00
Matthew Jones
f1ac2ff899
Bug fixes for CentOS
2014-03-20 11:22:19 -04:00
Matthew Jones
c9340cf5f1
Add a new mechanism for automagically creating a tmux session, splitting it into panes, and starting each Tower needed tower service... This is so you don't have to start each one manually
2014-03-19 13:51:55 -04:00
Matthew Jones
bf19b76d5a
Merge remote-tracking branch 'origin/task-system-rework'
...
* origin/task-system-rework: (36 commits)
Need to grab just the first item for the scm test project update
Revert a project unit test
Make sure we are calling signal_start in unit tests
Make sure we are calling signal_start in unit tests
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
Fixing up unit tests
Missing line-end comma
Prevent deadlocks on unit tests in a very specific scenario
Ignore checking celery task list during some unit tests, triggered by UNIT_TEST_IGNORE_TASK_WAIT
Missing semicolon
Remove update on launch, we'll test this another way
Make sure we ignore the wait update for tasks under dependency situations in the unit tests
Fix up run task manager script to handle signals, fix up task cancel job, add restart handler for ubuntu
Fix some bugs found from unit tests
More unit test rework
Some job tests can't run in their current state
Make sure we check arguments passed to signal start before allowing it to proceed.
No need to replace original build_args
Unit test updates for task system... remove old monkeypatch procedure for getting job args in favor of using the job info from the database. Can't do this anymore anyway since the job is running in another process
Changes to tasks unit tests
...
2014-03-19 13:14:21 -04:00
Matthew Jones
d3d84706a4
Need to grab just the first item for the scm test project update
2014-03-19 12:53:11 -04:00
Matthew Jones
e24538865f
Revert a project unit test
2014-03-19 12:49:13 -04:00
Matthew Jones
0548126e33
Make sure we are calling signal_start in unit tests
2014-03-19 11:56:30 -04:00
Matthew Jones
77e4d33770
Make sure we are calling signal_start in unit tests
2014-03-19 11:26:22 -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
1093b00e2a
Fixing up unit tests
2014-03-18 14:58:45 -04:00
Matthew Jones
7ac58dead3
Missing line-end comma
2014-03-18 12:04:27 -04:00
Matthew Jones
7fe474aec5
Prevent deadlocks on unit tests in a very specific scenario
2014-03-18 12:02:14 -04:00
Matthew Jones
fe625785c7
Ignore checking celery task list during some unit tests, triggered by UNIT_TEST_IGNORE_TASK_WAIT
2014-03-17 14:53:38 -04:00
Matthew Jones
57fff65577
Missing semicolon
2014-03-17 12:55:59 -04:00