Commit Graph

101 Commits

Author SHA1 Message Date
f928874189 directly call proc (before execution block) and rescue from an exception if it happens instead of using try, in order to log the error. 2015-12-16 16:30:54 +01:00
c0955d3505 Just some comments and todos 2015-12-12 00:47:29 +08:00
943d5554d9 Remove @all_containers instead of @containers during cleanup
Also added some comments and todos
Also fixed debug messages in remove_from_all_containers
Also refactored duplicated code with extracted function
Also removed some commented lines of code
2015-12-12 00:41:26 +08:00
e335759644 accessor methods for the container and all_container arrays hashes (in order to watch it with the rails console) 2015-12-02 16:00:31 +01:00
6170068f24 Major improvement in container fetching. ToDo: Check how much stress this puts on the docker daemon (I assume it is not that much).
+ some more rescue code (in return container) as well as logging fixes.
2015-11-28 16:20:16 +01:00
ae9cfaebf8 some logging and some rescues 2015-11-28 16:10:13 +01:00
27d226cbe4 Merge branch 'master' of https://github.com/openHPI/codeocean 2015-11-25 11:18:18 +01:00
201b298941 Remove import 2015-11-24 09:22:22 +01:00
1f25b3558c Merge branch 'master' of https://github.com/openHPI/codeocean 2015-11-23 20:25:02 +01:00
2678a6f1b5 some logging 2015-11-23 20:24:55 +01:00
ffdde1830b Restore large envs first 2015-11-23 20:20:34 +01:00
c41a8d8d5e Faster restore of containers after puma restart 2015-11-23 20:13:59 +01:00
207ff90fc8 remove this again. it caused immediate exit. 2015-11-11 00:25:26 +01:00
b1733d1a16 ensure database connection removal activated again 2015-11-10 15:04:21 +01:00
e927a39041 removed calls to the docker daemon, to hopefully solve load problems. 2015-11-09 19:26:56 +01:00
b05b24ee62 some more logging 2015-11-09 10:23:26 +01:00
7f3189615f temporarily uncomment database connection removal (in order to be sure that this does not cause problems) 2015-11-09 09:38:44 +01:00
0fd20c479b set encoding utf-8 for stdout and stderr from docker 2015-11-08 23:55:45 +01:00
1aa877d506 release database connections after thread termination of the "kill after timeout thread" 2015-11-08 12:39:42 +01:00
eb8c0e46fa Some logging, some code simplification, clear canvas on start 2015-11-03 15:54:08 +01:00
ef60494911 some more logging (and cleanup) 2015-10-29 16:27:12 +01:00
b89bd9d521 Turn off log synchronization for websockets. Otherwise, we can't reuse the containers (and terminals) 2015-10-28 16:42:34 +01:00
58b137408e exit the timeout thread on proper exit 2015-10-28 16:25:53 +01:00
30d0270744 Show correct timeout message on timeout. Do not show a message on valid exit. 2015-10-21 17:18:28 +02:00
863ce5d398 Corrected position of setting the container status flags. 2015-10-19 17:48:36 +02:00
b00dde91d9 just log pool status if it is already functional. 2015-10-19 16:36:42 +02:00
9e748e5dc9 prevent nil access on containers not present any longer in delete... 2015-10-19 15:52:48 +02:00
25191ab263 Merge branch 'webpython-hybrid' of ssh://github.com/openHPI/codeocean into webpython-hybrid 2015-10-19 14:47:49 +02:00
1360408dce Fix container pooling with websockets 2015-10-19 14:46:32 +02:00
4e35579a7d fixed the tests by deleting the root of all evil: the 's'. 2015-09-21 18:14:40 +02:00
13be0f65dd Improve error and output handling
Display websocket and container status messages as well as line feeds
to the user.
2015-09-16 19:14:36 +02:00
81aa5d5d8f Fixed submission-scoring.
Added parsing of exit cmd.
2015-09-16 18:34:04 +02:00
c8253a6ba0 Manually merge changes from webpython branch. 2015-09-15 16:55:16 +02:00
bc51948ada fixed some tests.. 2015-08-25 16:02:14 +02:00
8bb98dc8e9 fixed some errors concerning pooling, container cleanup, timeouts etc. 2015-08-21 16:32:25 +02:00
646e45700b some changes on logging output (better readability) 2015-08-21 14:43:57 +02:00
51fa137b9d try to delete volume dir of any killed execution dcontainer on container deletion 2015-07-27 16:07:57 +02:00
6af614ca7c use stdout 2015-06-18 20:13:43 +02:00
278e30ccf8 Fix adapter 2015-06-18 19:34:28 +02:00
7f5a76038f Fix adapter 2015-06-18 19:04:35 +02:00
35b2177c71 Add mocha adpater 2015-06-17 15:29:35 +02:00
eac54da11a Clean Working Folder without Threads
Disabled some tests that are not matching our current code base
2015-04-28 15:04:54 +02:00
b8e35274ac Added some roadmap 2015-04-28 13:46:56 +02:00
f5339e4664 Renamed tests, fix default 2015-04-28 11:40:49 +02:00
89c851b24f Clean Up Dir.. 2015-04-28 11:14:33 +02:00
fd3d489bd4 prevent multiple files with same name to crash the file tree 2015-04-27 11:57:24 +02:00
793160cf6f prevent NaNs in scoring 2015-04-27 10:38:12 +02:00
74dacbee3d Merge pull request #17 from franzliedke/patch-1
Clean up after debugging session
2015-04-23 13:17:29 +02:00
7296ccda33 Cleanup 2015-04-23 13:12:44 +02:00
480d6490f5 Clean up Docker client class. 2015-04-23 13:09:02 +02:00