I would try the approach of Peter too. To use another sidekiqjobs to avoid some api calls.
Example...
classGetPullRequestsJobdefperform(user,client)pull_requests=client.get_pull_requestsGetCommentsJob.perform_async(client,user,pull_requests)endendclassGetCommentsJobdefperform(client,user,pull_requests)time=user.gitplace_last_syncpull_requests.eachdo|pull_request|nextifpull_request.created_at<time# this guy could be in a reject. pull_requests.reject {}.eachcomments=client.get_pull_request_comments(pull_request)CreateCommentsJob.perform_async(user,pull_request,comments)time=pull_request.created_atendensureuser.update!({gitplace_last_sync: time})endendclassCreateCommentsJobdefperform(user,pull_request,comments)create_action_item(user,pull_request,comments)endend
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Akshay.
I have one suggestion.One sentry you can configure what exceptions you don't want to log just add it to config of sentry.
I would try the approach of Peter too. To use another sidekiqjobs to avoid some api calls.
Example...