Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change logging setting for task analytic scheduler #14031

Merged
merged 1 commit into from
May 23, 2023

Conversation

TheRealHaoLiu
Copy link
Member

SUMMARY
  • decrease verbosity for run_callback_receiver due to annoying JobEvent.objects.bulk_create log
  • add console logging to awx.main.tasks because it wasn't being captured in stdout in pod
  • add console logging to awx.main.analytics because it wasn't being captured in stdout in pod
  • add console logging to awx.main.scheduler because it wasn't being captured in stdout in pod
ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
AWX VERSION
awx: 22.3.1.dev6+gd0dd96e93e
ADDITIONAL INFORMATION

- decrease verbosity for run_callback_receiver due to annoying `JobEvent.objects.bulk_create` log
- add console logging to `awx.main.tasks` because it wasn't being captured in stdout in pod
- add console logging to `awx.main.analytics` because it wasn't being captured in stdout in pod
- add console logging to `awx.main.scheduler` because it wasn't being captured in stdout in pod
@TheRealHaoLiu
Copy link
Member Author

2023-05-23 01:31:04,521 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Total instances: 1, available for policy: 1
2023-05-23 01:31:04,522 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.scheduler Finishing task_manager Scheduler
2023-05-23 01:31:04,522 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Policy percentage, adding Instances [2] to Group controlplane
2023-05-23 01:31:04,523 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Cluster policy no-op finished in 0.00997018814086914 seconds
2023-05-23 01:31:04,458 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.dispatch task 9184021d-2aad-4d4a-a567-090e8e2b3aaa starting awx.main.tasks.system.awx_receptor_workunit_reaper(*[])
2023-05-23 01:31:04,543 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Checking for unreleased receptor work units
2023-05-23 01:31:04,466 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.dispatch task 83286020-d647-4aac-a8aa-18dcf9beab9e starting awx.main.tasks.system.awx_periodic_scheduler(*[])
2023-05-23 01:31:04,548 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Starting periodic scheduler
2023-05-23 01:31:04,458 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.dispatch task a78ceac8-2c0e-40d7-b741-378399b0ff88 starting awx.main.tasks.system.awx_k8s_reaper(*[])
2023-05-23 01:31:04,550 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Last scheduler run was: 2023-05-23 01:30:34.396908+00:00
2023-05-23 01:31:04,555 DEBUG    [c4644b2b335b4ce0a44f97aa9b121fe4] awx.main.tasks.system Checking for orphaned k

sample showing task and scheduler being logged in container log

@TheRealHaoLiu TheRealHaoLiu enabled auto-merge (squash) May 23, 2023 01:32
@TheRealHaoLiu TheRealHaoLiu merged commit 00d8291 into ansible:devel May 23, 2023
15 checks passed
@TheRealHaoLiu TheRealHaoLiu deleted the logging-improvement branch May 23, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants