It would be great to be able to disable a Brightcove client. I'm looking for a way to prevent _brightcove_initiate_sync() queuing up a client in certain circumstances. I can alter the config entity in settings.php, and thus force the sync to fail, but that creates a lot of errors.

Comments

sime created an issue. See original summary.

yce’s picture

Status: Active » Needs work

Hi,

Not sure, disabling the client would mean to desync everything IOW remove every video, playlist, text track, etc. from the database to make sure it is not accessible.

Probably a selective sync could be implemented, both for drush and for the status page.
Also an option could be added to the API Client entity that says "Sync with cron" or something like that.

Feel free to provide a patch for this.
Don't forget the update hook for the new base field.

Also keep in mind that the client queue worker initiates the rest of the queue workers, once they are built they have to be emptied first to start over.

yce’s picture

Priority: Normal » Minor
Status: Needs work » Closed (outdated)
yce’s picture

Status: Closed (outdated) » Needs work