Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Source Salesforce, Shopify: add maxSecondsBetweenMessages in metadata #36723

Merged
merged 2 commits into from Apr 3, 2024

Conversation

strosek
Copy link
Contributor

@strosek strosek commented Apr 1, 2024

Certified connectors are required to have maxSecondsBetweenMessages set in metadata file.
maxSecondsBetweenMessages is the longest time frame (in seconds) of API requests limits reset for endpoints used by connector. Issue

What

maxSecondsBetweenMessages value for the following connectors was added:

source-salesforce reference
source-shopify reference

How

Files metadata.yaml for connectors mentioned above were updated by adding maxSecondsBetweenMessages value.

🚨 User Impact 🚨

No breaking changes

Copy link

vercel bot commented Apr 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 3, 2024 5:01pm

@@ -17,6 +17,7 @@ data:
githubIssueLabel: source-shopify
icon: shopify.svg
license: ELv2
maxSecondsBetweenMessages: 1
Copy link
Contributor

Choose a reason for hiding this comment

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

@bazarnov does it make sense in terms of rate limit for shopify (i.e. the rate limit window is one second)? @davinchia mentioned that there would still be a minimum. @davinchia, can you confirm the behavior when the maxSecondsBetweenMessages is lower than 90 minutes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@maxi297 It doesn't regard to the BULK Jobs running in avg 150 - 600 sec. I would rather reference the Shopify Documentation, where this info could have been, but there is no mentioned of how long the regular bulk job would take to run. My opinion here is we should rely on the value of 2 hours, and make it possible to adjust the slice size from the source itself, so the source logic follows the timings as well, when it's possible (if we have long-running jobs - we decrease the next slice to try-run faster, and if we have faster runs for bulk jobs, we can increase the slice size to try get bigger data portion next time, thus dynamically balance the slice size - working on it, btw)

so, @strosek it should be at least: 7200 for source-shopify and 86400 for source-salesforce, since the max bulk job time for salesforce is up to 1 day.

Copy link
Contributor

Choose a reason for hiding this comment

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

So, we've been told by @davinchia that this value should be the value of the rate limit hence why I asked him to confirm that. Given the naming of the variable, your reasoning sounds good but this was not the ask given to us. @davinchia, please confirm

Copy link
Contributor

Choose a reason for hiding this comment

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

@davinchia confirmed @bazarnov point. Can we update shopify value? I'll approve so that once the change is done, you can merge.

Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

Conditional approval on the resolution of the comment

@@ -17,6 +17,7 @@ data:
githubIssueLabel: source-shopify
icon: shopify.svg
license: ELv2
maxSecondsBetweenMessages: 1
Copy link
Contributor

Choose a reason for hiding this comment

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

@davinchia confirmed @bazarnov point. Can we update shopify value? I'll approve so that once the change is done, you can merge.

@strosek strosek marked this pull request as ready for review April 3, 2024 17:00
@strosek strosek merged commit b5e1d10 into master Apr 3, 2024
34 checks passed
@strosek strosek deleted the strosek/issue-6779-2 branch April 3, 2024 17:45
msaffitz added a commit to Encore-Post-Sales/airbyte-magnify that referenced this pull request Apr 3, 2024
* master: (1562 commits)
  ✨ source-google-drive: migrate to poetry  (airbytehq#36581)
  enable spotbugs for CDK core and dependencies submodule (airbytehq#36612)
  ✨ Source Salesforce, Shopify: add maxSecondsBetweenMessages in metadata (airbytehq#36723)
  java-cdk: re-export airbyte-api dependency (airbytehq#36759)
  Source Google Sheets: address dependency conflict and update CDK (airbytehq#36515)
  Airbyte CI: rename incorrectly named pipelines (airbytehq#36722)
  Source Azure Blob Storage: add integration tests (airbytehq#36542)
  Salesforce: retry on download_data and create_stream_job (airbytehq#36385)
  ✨Source Monday: Bumped CDK version dependency (airbytehq#36746)
  airbyte-ci: burst gradle task cache on new java cdk release (airbytehq#36480)
  chore(connectors): remove tasks.py and top-level requirements.txt (airbytehq#36738)
  airbyte-ci: fix pull-request-number option for migrate_to_base_image (airbytehq#36779)
  🤖 Bump patch version of Python CDK
  add backward compatibility for an old close slice logic (airbytehq#36774)
  Bump Airbyte version from 0.57.0 to 0.57.1
  🤖 Bump patch version of Python CDK
  low-code: Fix cursor pagination instantiation if the stop_condition is a string (airbytehq#36760)
  fix rabbitmq icon and simplify docs registry code (airbytehq#36767)
  Update azure-entra-id.md (airbytehq#36758)
  re-enable rabbitmq on OSS (airbytehq#36749)
  ...
nurikk pushed a commit to nurikk/airbyte that referenced this pull request Apr 4, 2024
…ta (airbytehq#36723)

Add maxSecondsBetweenMessages for Salesforce and Shopify with bulk job time into consideration.
markcusack pushed a commit to markcusack/airbyte that referenced this pull request Apr 9, 2024
…ta (airbytehq#36723)

Add maxSecondsBetweenMessages for Salesforce and Shopify with bulk job time into consideration.
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.

None yet

4 participants