Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
yce CreditAttribution: yce at Pronovix for BrightCove commentedHi,
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.
Comment #3
yce CreditAttribution: yce at Pronovix for BrightCove commentedComment #4
yce CreditAttribution: yce at Pronovix for BrightCove commented