Skip to content

Commit

Permalink
enh(Zendesk) - prevent resuming paused zendesk connectors (#9752)
Browse files Browse the repository at this point in the history
* prevent resuming paused zendesk connectors

* replace error with a warning

* add a comment
  • Loading branch information
aubin-tchoi authored Jan 6, 2025
1 parent 7104095 commit ecd5685
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions connectors/src/connectors/zendesk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ export class ZendeskConnectorManager extends BaseConnectorManager<null> {
logger.error({ connectorId }, "[Zendesk] Connector not found.");
return new Err(new Error("Connector not found"));
}
if (connector.isPaused()) {
logger.warn(
{ connectorId },
"[Zendesk] Cannot resume a paused connector."
);
// we don't return an error since this could be used within a batch-resume, only need to be informed
return new Ok(undefined);
}

const dataSourceConfig = dataSourceConfigFromConnector(connector);
const loggerArgs = {
Expand Down

0 comments on commit ecd5685

Please sign in to comment.