Seth Foster
85a5b58d18
Merge pull request #12629 from fosterseth/task_manager_refactor_squashed
...
Task manager refactor
2022-08-10 16:02:05 -04:00
Seth Foster
6fb3c8daa8
Merge pull request #44 from AlanCoding/one_of_seths_own
...
Inherit from our own APIView, not rest framework
2022-08-10 15:38:14 -04:00
Alan Rominger
a0103acbef
Inherit from our own APIView, not rest framework
2022-08-10 15:31:19 -04:00
Alan Rominger
f7e6a32444
Optimize task manager with debug toolbar, adjust prefetch ( #12588 )
2022-08-10 10:05:13 -04:00
Alex Corey
7bbc256ff1
Merge pull request #12637 from AlexSCorey/12636-WorkflowApprovalTranslations
...
Fixes lack of translation on workflow approval list item actions
2022-08-09 15:47:34 -04:00
Alex Corey
64f62d6755
fixes translation issue
2022-08-09 15:30:08 -04:00
Alex Corey
b4cfe868fb
Merge pull request #12546 from mabashian/6018-node-alias
...
Fix bug where node alias is not remaining after changing the template on a wf node
2022-08-09 10:16:46 -04:00
Alex Corey
8d8681580d
Merge pull request #12548 from AlexSCorey/12512-UpdateWorkflowApprovalToolbar
...
Refactors and redesigns workflow approval to impove UX
2022-08-09 10:02:27 -04:00
Alex Corey
8892cf2622
Adds toast to workflow approval on cancel
2022-08-09 09:40:34 -04:00
Alan Rominger
585d3f4e2a
Register system again if deleted by another pod
...
Avoid cases where missing instance
would throw error on startup
this gives time for heartbeat to register it
2022-08-08 22:36:17 -04:00
Alex Corey
2c9a0444e6
Easier review workflow output ( #12459 )
...
* Adds new tab component and positions it properly on screen
* Adds filtering, and navigation to node outputs
2022-08-08 16:13:51 -04:00
Alan Rominger
279cebcef3
Merge pull request #12586 from AlanCoding/connections_graph
...
Add a graph to show database connections being used
2022-08-08 15:49:20 -04:00
Seth Foster
e6f8852b05
Cache task_impact
...
task_impact is now a field on the database
It is calculated and set during create_unified_job
set task_impact on .save for adhoc commands
2022-08-05 14:33:47 -04:00
Alan Rominger
d06a3f060d
Block sliced workflow jobs on any job type from their JT ( #12551 )
2022-08-05 14:33:45 -04:00
Seth Foster
957b2b7188
Cache preferred instance groups
...
When creating unified job, stash the list of pk values from the
instance groups returned from preferred_instance_groups so that the
task management system does not need to call out to this method
repeatedly.
.preferred_instance_groups_cache is the new field
2022-08-05 14:33:28 -04:00
Alan Rominger
b94b3a1e91
[task_manager_refactor] Move approval node expiration logic into queryset ( #12502 )
...
Instead of loading all pending Workflow Approvals in the task manager,
run a query that will only return the expired apporovals
directly expire all which are returned by that query
Cache expires time as a new field in order to simplify WorkflowApproval filter
2022-08-05 14:33:27 -04:00
Elijah DeLee
7776a81e22
add job to dependency graph in start task
...
We always add the job to the graph right before calling start task.
Reduce complexity of proper operation by just doing this in start_task,
because if you call start_task, you need to add it to the dependency
graph
2022-08-05 14:33:26 -04:00
Elijah DeLee
bf89093fac
unify call pattern for get_tasks
2022-08-05 14:33:26 -04:00
Elijah DeLee
76d76d13b0
Start pending workflows in TaskManager
...
we had tried doing this in the WorkflowManager, but we decided that
we want to handle ALL pending jobs and "soft blockers" to jobs with the
TaskManager/DependencyGraph and not duplicate that logic in the
WorkflowManager.
2022-08-05 14:33:26 -04:00
Elijah DeLee
e603c23b40
fix sliced jobs blocking logic in depedency graph
...
We have to look at the sliced job's unified_job_template_id
Now, task_blocked_by works for sliced jobs too.
2022-08-05 14:33:26 -04:00
Alan Rominger
8af4dd5988
Fix unintended slice job blocking
2022-08-05 14:33:25 -04:00
Seth Foster
0a47d05d26
split schedule_task_manager into 3
...
each call to schedule_task_manager becomes one of
ScheduleTaskManager
ScheduleDependencyManager
ScheduleWorkflowManager
2022-08-05 14:33:25 -04:00
Seth Foster
b3eb9e0193
pid kill each of the 3 task managers on timeout
2022-08-05 14:33:25 -04:00
Elijah DeLee
b26d2ab0e9
fix looking at wrong id for wf allow_simultaneous
2022-08-05 14:33:25 -04:00
Elijah DeLee
7eb0c7dd28
exit task manager loops early if we are timed out
...
add settings to define task manager timeout and grace period
This gives us still TASK_MANAGER_TIMEOUT_GRACE_PERIOD amount of time to
get out of the task manager.
Also, apply start task limit in WorkflowManager to starting pending
workflows
2022-08-05 14:33:24 -04:00
Elijah DeLee
236c1df676
fix lint errors
2022-08-05 14:33:24 -04:00
Seth Foster
ff118f2177
Manage pending workflow jobs in Workflow Manager
...
get_tasks uses UnifiedJob
Additionally, make local overrides run after development settings
2022-08-05 14:31:48 -04:00
Elijah DeLee
29d91da1d2
we can do all the work in one loop
...
more than saving the loop, we save building the WorkflowDag twice which
makes LOTS of queries!!!
Also, do a bulk update on the WorkflowJobNodes instead of saving in a
loop :fear:
2022-08-05 14:31:48 -04:00
Elijah DeLee
ad08eafb9a
add debug views for task manager(s)
...
implement https://github.com/ansible/awx/issues/12446
in development environment, enable set of views that run
the task manager(s).
Also introduce a setting that disables any calls to schedule()
that do not originate from the debug views when in the development
environment. With guards around both if we are in the development
environment and the setting, I think we're pretty safe this won't get
triggered unintentionally.
use MODE to determine if we are in devel env
Also, move test for skipping task managers to the tasks file
2022-08-05 14:31:24 -04:00
Seth Foster
431b9370df
Split TaskManager into
...
- DependencyManager spawns dependencies if necessary
- WorkflowManager processes running workflows to see if a new job is
ready to spawn
- TaskManager starts tasks if unblocked and has execution capacity
2022-08-05 14:29:02 -04:00
Alex Corey
3e93eefe62
Merge pull request #12618 from vedaperi/3999-NotificationHelpText
...
Add Help Text with documentation link to Notification Templates page
2022-08-05 10:41:07 -04:00
John Westcott IV
782667a34e
Allow multiple values in SOCIAL_AUTH_SAML_USER_FLAGS_BY_ATTR.is_*_[value|role] settings ( #12558 )
2022-08-05 10:39:50 -04:00
dependabot[bot]
90524611ea
Bump ace-builds from 1.6.0 to 1.8.1 in /awx/ui
...
Bumps [ace-builds](https://github.com/ajaxorg/ace-builds ) from 1.6.0 to 1.8.1.
- [Release notes](https://github.com/ajaxorg/ace-builds/releases )
- [Changelog](https://github.com/ajaxorg/ace-builds/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ajaxorg/ace-builds/compare/v1.6.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: ace-builds
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-05 14:39:49 +00:00
dependabot[bot]
583086ae62
Bump dompurify from 2.3.8 to 2.3.10 in /awx/ui
...
Bumps [dompurify](https://github.com/cure53/DOMPurify ) from 2.3.8 to 2.3.10.
- [Release notes](https://github.com/cure53/DOMPurify/releases )
- [Commits](https://github.com/cure53/DOMPurify/compare/2.3.8...2.3.10 )
---
updated-dependencies:
- dependency-name: dompurify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-05 14:39:23 +00:00
Alex Corey
19c24cba10
Merge pull request #12602 from ansible/dependabot/npm_and_yarn/awx/ui/devel/prop-types-15.8.1
...
Bump prop-types from 15.7.2 to 15.8.1 in /awx/ui
2022-08-04 09:56:23 -04:00
Jeff Bradberry
5290c692c1
Merge pull request #12620 from jbradberry/even-narrower-reload
...
Restrict files that trigger a reload
2022-08-04 09:21:31 -04:00
Jeff Bradberry
90a19057d5
Restrict files that trigger a reload
...
to files explicitly ending in '.py' that do not start with a dot.
This will avoid Emacs lockfiles from triggering the restart.
2022-08-03 18:23:48 -04:00
dependabot[bot]
a05c328081
Bump prop-types from 15.7.2 to 15.8.1 in /awx/ui
...
Bumps [prop-types](https://github.com/facebook/prop-types ) from 15.7.2 to 15.8.1.
- [Release notes](https://github.com/facebook/prop-types/releases )
- [Changelog](https://github.com/facebook/prop-types/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/prop-types/compare/v15.7.2...v15.8.1 )
---
updated-dependencies:
- dependency-name: prop-types
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 16:09:07 +00:00
Alex Corey
6d9e353a4e
Merge pull request #12603 from ansible/dependabot/npm_and_yarn/awx/ui/devel/rrule-2.7.1
...
Bump rrule from 2.7.0 to 2.7.1 in /awx/ui
2022-08-03 12:06:51 -04:00
Alex Corey
82c062eab9
Merge pull request #12605 from ansible/dependabot/npm_and_yarn/awx/ui/devel/luxon-3.0.1
...
Bump luxon from 2.4.0 to 3.0.1 in /awx/ui
2022-08-03 12:06:32 -04:00
vedaperi
c0d59801d5
Add help text to Notification Templates form and detail with link to documentation
2022-08-02 18:15:56 -07:00
Alex Corey
93ea8a0919
Adds toast to detail view and fixes non-disabled action button on list view
2022-08-02 17:18:29 -04:00
Rebeccah Hunter
67f1ab2237
Merge pull request #12609 from john-westcott-iv/oracle_awx_triage_reply
...
Adding triage response for inquaries around Oracles version of AWX
2022-08-01 13:53:02 -04:00
John Westcott IV
71be8fadcb
Adding GitHub check to ensure PRs have the proper X/Y/Z flags ( #12577 )
...
* Adding GitHub check to ensure PRs have the proper X/Y/Z flags
* Changing the Z release wording
2022-08-01 12:59:01 -04:00
John Westcott IV
c41becec13
Adding triage response for inquaries around Oracles version of AWX
2022-08-01 12:00:48 -04:00
mabashian
6d0d8e57a4
Fix bug where node alias is not remaining after changing the template on a wf node
2022-08-01 11:28:50 -04:00
Shane McDonald
6446b627ad
Merge pull request #12608 from shanemcd/fix-k8s-dev-env
...
Fix Kubernetes dev environment + update docs
2022-08-01 11:11:45 -04:00
Shane McDonald
fcebd188a6
Fix Kubernetes dev environment + update docs
2022-08-01 10:45:10 -04:00
Alex Corey
1fca505b61
Refactors and redesigns workflow approval to impove UX
2022-08-01 09:59:53 -04:00
dependabot[bot]
a0e9c30b4a
Bump luxon from 2.4.0 to 3.0.1 in /awx/ui
...
Bumps [luxon](https://github.com/moment/luxon ) from 2.4.0 to 3.0.1.
- [Release notes](https://github.com/moment/luxon/releases )
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moment/luxon/compare/2.4.0...3.0.1 )
---
updated-dependencies:
- dependency-name: luxon
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 08:11:23 +00:00