-
Couldn't load subscription status.
- Fork 5
GL-Work #21
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my local testing I observed couple of issue,
[Logon] [InvalidLogonAttempt] Invalid Credentials Provided.is getting retried 5 times, shouldn't be retried.- sync implementation needs to be revisited.
| "zeep", | ||
| 'backoff==1.8.0', | ||
| 'pendulum==1.2.0', | ||
| "singer-python==6.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make below changes,
packages=find_packages(),
package_data = {
"tap_listrak/schemas": ["*.json"]
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple observations needs the attenssion,
- IMO, InvalidLogonAttempt shouldn't be retried.
ERROR Giving up request(...) after 5 tries (zeep.exceptions.Fault: GetContactListCollection(): [Logon] [InvalidLogonAttempt] Invalid Credentials Provided)
- sync implementation needs to be revisited.
…valid credentials, refined sync logic
|
|
This is done. in init.py: Refactored sync() function to dynamically call the sync function for each selected stream insted of hardcoding sync_lists(), |
|
Why did we delete circle ci config? |
tap_listrak/http.py
Outdated
| max_tries=5, | ||
| jitter=None, | ||
| on_backoff=log_retry_attempt, | ||
| giveup=is_non_retriable_exception # This will prevent retry on bad login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the giveup handler is named is_non_retriable_exception(), the comment doesn't add any value and seems redundant. IMO, no comment is needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please avoid force pushes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback
Removed the comment, and also avoided force push.
Also added the Circle CI config, also added unit tests for the same.
Description of change
This is Combined PR of:
Manual QA steps
Risks
#Rollback steps