Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@liiight
Copy link
Member

@liiight liiight commented Jul 28, 2016

Motivation for changes:

cli_config can't work when daemon is running since config isn't reloaded and manager doesn't add updated options to itself when firing event. This kinda fixes that in a hacky way. need some ideas how to do this better.
This should affect affect any config editing plugin, like secrets as well.

Addressed issues:

@liiight liiight changed the title [wip] reload config from memory and reset manager options on cli execution [wip] Allow config changing plugin to operate while daemon is running Jul 28, 2016
@liiight liiight changed the title [wip] Allow config changing plugin to operate while daemon is running Allow config changing plugins to operate while daemon is running Jul 31, 2016
return self._has_lock

@property
def should_reload(self):
Copy link
Member

Choose a reason for hiding this comment

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

Avoid word reload as it is mistaken for actual file reload that is coming hopefully some day :)

Copy link
Member Author

Choose a reason for hiding this comment

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

but it is reloaded, from memory.
also, we have reload from file now, not sure what you mean,

Other than this, are you cool with this? Because @gazpachoking didn't like the whole triggering reload in the core thing. Unfortunately this is the only way to load cli-config now when daemon is running.

@paranoidi
Copy link
Member

Is this even relevant anymore as daemon reloads config automatically (in next branch)

@liiight
Copy link
Member Author

liiight commented Sep 16, 2016

Yes, daemon reload on config hash change. The change in pr triggers the plugin usage while in daemon mode,two related but not the same

@liiight liiight merged commit 6f71001 into Flexget:develop Sep 16, 2016
@liiight liiight deleted the cli_config branch September 16, 2016 19:15
liiight added a commit that referenced this pull request Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--cli-config only works in test mode

2 participants