Jira Bridge Bulk Updates missing changes

Hi All, I’m curious if anyone out there that is using the SG>Jira bridge has run into an issue with bulk updates on the Jira side. Everything works fine going either direction with individual updates, but when we do a bulk update in Jira (say transitioning multiple issues to done), the Jira>SG bridge only catches a handful of the updates. We think this generally has to do with the fire-and-forget nature of the Jira updates and the bridge can’t keep up. We’re considering creating a log on the Jira side so we can store the updates that come faster than the bridge can process them, but a log to be a database of changes between two other databases seems messy.


:thinking: Sounds like it could be a bug, but our QA just ran a test batch updating about 20 things, and he didn’t encounter an issue. How many items were you updating in Jira?

1 Like

The smallest batch I ran was 49, it caught just under 20 of the updates. It also caused a critical error in the plugin. Here is a dump of the error before the section with specific content I can’t post here.

Time: 2019-10-08 11:53:24,220
Logger: plugin.sg_jira_event_trigger.process_event
Path: C:\shotgun-events-jira-bridge\src\shotgunEventDaemon.py
Function: process
Line: 966

An error occured processing an event.

Traceback (most recent call last):
File “C:\shotgun-events-jira-bridge\src\shotgunEventDaemon.py”, line 956, in process
self._callback(self._shotgun, self._logger, event, self._args)
File “C:\shotgun-events\src\shotgun_events_plugins\jira_bridge_plugins\sg_jira_event_trigger.py”, line 173, in process_event
File “C:\shotgun-events-jira-bridge.venv\lib\site-packages\requests\api.py”, line 116, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “C:\shotgun-events-jira-bridge.venv\lib\site-packages\requests\api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “C:\shotgun-events-jira-bridge.venv\lib\site-packages\requests\sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “C:\shotgun-events-jira-bridge.venv\lib\site-packages\requests\sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “C:\shotgun-events-jira-bridge.venv\lib\site-packages\requests\adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host=‘slc-shotgun01’, port=9090): Max retries exceeded with url: /sg2jira/default/Task/616545 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000000002745710>: Failed to establish a new connection: [Errno 10061] No connection could be made because the target machine actively refused it’,))

Local variables at outer most frame in plugin:

1 Like