Skip to content

Conversation

@AlanCoding
Copy link
Member

@AlanCoding AlanCoding commented Dec 9, 2025

SUMMARY

The main reason we didn't do this before was that we didn't have a means of splitting messages into multi-part messages to get under the 8,000 character limit of pg_notify. This is addressed with ansible/dispatcherd#191 which I think is fairly final & durable.

Additionally, eda-server is making fast progress, and I want to push for us both to have the same solution, and the sockfile just takes too much debugging for it to be worth it.

We might add back in the socket broker later, or we might just have some sort of custom task on shutdown where we force it to dump the status output to logs or a file. If the self-check messages are, at all, working, this will probably cover us.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

Note

Move dispatcher control/status/cancel to PostgreSQL NOTIFY, remove socket-based broker/debugging, and update dispatcherd dependency.

  • Dispatcher config (awx/main/dispatch/config.py):
    • Replace socket broker config with pg_notify broker; set publish.default_broker to pg_notify.
    • Add default_publish_channel (uses settings.CLUSTER_HOST_ID) and service channels (tower_broadcast_all, tower_settings_change, get_task_queuename()).
    • Preserve mock mode via noop broker.
  • Management command (awx/main/management/commands/run_dispatcher.py):
    • Remove local socket checks/usage; --status/--running/--cancel now use dispatcherd control over pg_notify.
    • Initialize dispatcher service via dispatcherd.config.setup(get_dispatcherd_config(...)) before run_service().
  • Settings:
    • Remove DISPATCHERD_DEBUGGING_SOCKFILE from defaults and production defaults.
  • Dependencies:
    • Change requirement to dispatcherd[pg_notify] and bump version in both requirements.in and requirements.txt.

Written by Cursor Bugbot for commit a2ec633. This will update automatically on new commits. Configure here.

@AlanCoding
Copy link
Member Author

Unclear, but dev-env may be failing on this

629.5 Collecting automat==25.4.16
629.5   Downloading automat-25.4.16-py3-none-any.whl (42 kB)
629.6 ERROR: Could not find a version that satisfies the requirement awx-plugins-interfaces (unavailable) (from versions: 0.0.1a1, 0.0.1a2, 0.0.1a3, 0.0.1a4, 0.0.1a5)
629.6 ERROR: No matching distribution found for awx-plugins-interfaces (unavailable)
629.6 WARNING: You are using pip version 21.2.4; however, version 25.3 is available.
629.6 You should consider upgrading via the '/var/lib/awx/venv/awx/bin/python3.11 -m pip install --upgrade pip' command.
629.7 make: *** [Makefile:183: requirements_awx] Error 1

doesn't look related

@AlanCoding AlanCoding marked this pull request as ready for review December 10, 2025 16:11
@AlanCoding
Copy link
Member Author

Now I see

Error: Unable to find a match: rsyslog-8.2102.0-106.el9

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Dec 10, 2025
@AlanCoding
Copy link
Member Author

Waiting for #16203 to get checks passing

@sonarqubecloud
Copy link

@AlanCoding AlanCoding merged commit 054f603 into ansible:devel Dec 10, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:api dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants