Skip to content

Conversation

@thedoubl3j
Copy link
Member

SUMMARY

Removing the dispatcher feature flag as well as migrating anything that might be needed to new dispatcherd library.

PR is still a WIP and not finished. If you see anything or think of anything please note it.

ISSUE TYPE
  • Breaking Change
COMPONENT NAME
  • API
ADDITIONAL INFORMATION

* started removing feature flags and adjusting logic
* WIP
return obj

@classmethod
def apply_async(cls, args=None, kwargs=None, queue=None, uuid=None, **kw):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should need to keep this. I mean, I don't think we should need to keep any of the entire publish.py module.

@AlanCoding
Copy link
Member

Looking like it's making good progress. Next I would like to try to focus on the decorator transition

from awx.main.dispatch.publish import task as task_awx

Should be something that can be replaced now with the @task decorator directly from the dispatcherd library, and this will make obvious a lot of cascading deletions from there.

* moved to dispatcher decorator
* updated as many as I could find
timeout = 5
if flag_enabled('FEATURE_DISPATCHERD_ENABLED'):
from dispatcherd.factories import get_control_from_settings
from dispatcherd.factories import get_control_from_settings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, it should be appropriate to move imports like this up to the top of the file. The argument for doing it in-line because it's a conditional path no longer holds.

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.

2 participants