Commit graph

619 commits

Author SHA1 Message Date
Milan Kolar
8df857bb89 Merge branch 'develop' into feature/PYPE-349_parallel_event_server 2019-10-31 18:42:26 +01:00
Milan Kolar
c3cbab14b9 missing self 2019-10-31 18:42:15 +01:00
iLLiCiTiT
6f93743c8d added old_way_server which can handle same way as was before and restart event server when ftrack connection fails 2019-10-29 18:01:02 +01:00
iLLiCiTiT
92ccd406c5 created exception for mongo permission error 2019-10-29 18:00:20 +01:00
iLLiCiTiT
5b70ddf32f added oldway argument to event server cli 2019-10-29 17:59:36 +01:00
iLLiCiTiT
75ce8f1196 added subprocess file for oldway event server 2019-10-29 17:58:29 +01:00
iLLiCiTiT
10d6956037 event server will wait some time if subprocess crashed many times in row 2019-10-25 18:27:31 +02:00
iLLiCiTiT
38a6c84fe5 its used lib to get mongo port and host in event server cli 2019-10-25 18:26:38 +02:00
iLLiCiTiT
11f0c41e90 crash all server if mongo error happened 2019-10-25 18:25:44 +02:00
iLLiCiTiT
5d6f91d614 socket thread stores info if mongo error has happened during subprocess 2019-10-25 18:24:36 +02:00
iLLiCiTiT
e0f7752205 sub event processor print traceback 2019-10-25 18:24:12 +02:00
iLLiCiTiT
4313cc5667 mongo permissions error is sent with socket message 2019-10-25 18:23:52 +02:00
iLLiCiTiT
24175a2587 atexit register has args now 2019-10-25 18:22:28 +02:00
iLLiCiTiT
e7c9a61b2e added lib to ftrack_server with functios able to handle mongo url parts 2019-10-25 18:21:44 +02:00
Milan Kolar
067a7c94cb Merge branch 'develop' into feature/PYPE-531_avalon_upstream_and_silos
# Conflicts:
#	pype/ftrack/lib/avalon_sync.py
2019-10-25 15:50:38 +02:00
iLLiCiTiT
3a5525edf6 processed events older than 3 days are removed from mongo db 2019-10-23 18:45:41 +02:00
iLLiCiTiT
7c59df5ec5 max timeout of heartbeat increased to 35 2019-10-23 18:03:29 +02:00
iLLiCiTiT
11f4451af1 added basic docstrings 2019-10-23 18:02:53 +02:00
iLLiCiTiT
bfa61e2e98 kill threads with subprocesses on exit 2019-10-23 17:34:11 +02:00
iLLiCiTiT
565c43971c added sigkill signal 2019-10-23 17:33:32 +02:00
iLLiCiTiT
ee8f09cf46 added error logs 2019-10-23 16:52:07 +02:00
iLLiCiTiT
aad641f233 import fixes 2019-10-23 16:48:13 +02:00
iLLiCiTiT
ac290711b9 sort events by date there were stored 2019-10-23 16:47:45 +02:00
iLLiCiTiT
45370876e3 replaced args with options(kwargs) in custom db connector 2019-10-23 15:29:05 +02:00
iLLiCiTiT
1ca674f33f added atexit to custom db connector to run uninstall on exit 2019-10-23 15:05:07 +02:00
iLLiCiTiT
19f810ff57 added check active table to custom db connector 2019-10-23 15:01:51 +02:00
iLLiCiTiT
4290af23e7 moved event server files in hierarchy 2019-10-23 14:57:53 +02:00
iLLiCiTiT
f1c873fedc minor fixes, occupied socket ports are skipped and logger is renamed 2019-10-23 14:38:32 +02:00
iLLiCiTiT
4921783d1a terminate signal is registered too to be able terminate subprocesses 2019-10-23 14:36:54 +02:00
iLLiCiTiT
d1bfa2412e pymongo connection error cause that subprocess will end 2019-10-23 14:33:01 +02:00
iLLiCiTiT
b7c2954061 changed default ports 2019-10-23 14:26:31 +02:00
iLLiCiTiT
bcf8bf17a5 session instance validation also checks for process session and raises exception if does not match ftrack_api session 2019-10-22 14:02:49 +02:00
iLLiCiTiT
28f2d14318 pype logging is not used in event_server_cli for cases when mongo is not accessible and removed backup solution 2019-10-22 14:01:58 +02:00
iLLiCiTiT
5c70f3eb13 modified event_server_cli to be able run subprocesses and handle their liveability 2019-10-22 12:12:54 +02:00
iLLiCiTiT
631dcb56ea added modified ftrack sessions, one for storing, second for processing events 2019-10-22 12:12:15 +02:00
iLLiCiTiT
1ee8ab0dab added socket thread which is able to start subprocess with connection to specific port with sockets 2019-10-22 12:11:46 +02:00
iLLiCiTiT
8b8427ca87 added scripts to be able to be run as subprocess, one for storing, second for processing events 2019-10-22 12:11:12 +02:00
iLLiCiTiT
f0e5f39342 run server in ftrack server gives ability to use other session and not to load plugins 2019-10-22 12:02:22 +02:00
iLLiCiTiT
43f63fd260 print traceback when error during plugin registration happens 2019-10-22 12:01:43 +02:00
iLLiCiTiT
11e2382dfd session check is happening during initialization not before register of each plugin 2019-10-22 12:00:04 +02:00
iLLiCiTiT
2676a8b048 fix of not correctly storing hierarchical attributes 2019-10-18 15:32:32 +02:00
Jakub Trllo
0c181f78a1 Merged in bugfix/PYPE-559_hier_attrs_event_fix (pull request #324)
Bugfix/PYPE-559 hier attrs event fix
2019-10-18 09:31:07 +00:00
iLLiCiTiT
d375a5142b fixed lines of events where KeyError was raised due to missing values (or keys) 2019-10-18 10:21:15 +02:00
Jakub Trllo
37e842a8b3 Merged in feature/PYPE-544_effective_ftrack_queries (pull request #308)
Feature/PYPE-544 effective ftrack queries
2019-10-17 21:51:45 +00:00
iLLiCiTiT
be50b0ec05 fix unused and debug imports 2019-10-17 17:16:12 +02:00
iLLiCiTiT
642020ae12 added debug logging to hierarchical attrs event 2019-10-17 16:45:49 +02:00
iLLiCiTiT
aea0eefab0 process entities based on entity action (add, remove or update) 2019-10-17 16:45:04 +02:00
Jakub Trllo
705411be08 Merged in hotfix/event_thumb_update_fix (pull request #317)
Hotfix/event thumb update fix
2019-10-16 13:20:21 +00:00
Jakub Jezek
2b619c86c7 Merge branch 'develop' into feature/PYPE-539_improve_sync_logging 2019-10-16 14:39:52 +02:00
iLLiCiTiT
7241c44d15 fixed KeyError exception when entity from event does not have keys 2019-10-10 12:59:37 +02:00