Commit Graph

131 Commits

Author SHA1 Message Date
Luis Uguina
46ad1882a7 feat: add GPU id to error report 2020-10-30 07:41:38 +11:00
Sheepit Renderfarm
d3607ce177 Merge branch 'fix/handle-server-code-error' into 'master'
Handle server side error code

See merge request sheepitrenderfarm/client!3
2020-10-27 13:47:57 +00:00
Laurent Clouet
e1e680ace3 Handle server side error code 2020-10-27 14:42:59 +01:00
Laurent Clouet
cfa2acad8f Fix: NullPointerException 2020-10-27 14:32:11 +01:00
Luis Uguina
6587b4dcef Feature: support for shared downloads directory (#295)
* Feature: support for shared downloads directory

This feature is especially relevant for users with several clients running simultaneously within the same computer (computers running several GPUs or any combination of GPUs + CPUs) or multiple computers running in a network. The feature allows the user to specify a shared downloads directory via the new -shared-downloads-dir client option. All the clients using that option will share the same binaries and scene files.

How it works?
The first client downloading a binary or scene will save the file in the directory especified in -shared-downloads-directory. The rest of the clients using the same option will wait until the file has been downloaded. Once the file has been downloaded, it will be ready for the rest of the clients.

This feature is especially relevant for users with metered/slow connections or multiple computers/clients that don't want to download the same binary/file multiple times.

IMPORTANT: All the clients intended to share the binaries and scenes must execute the client with the same -shared-downloads-dir parameter.
2020-10-21 13:03:09 +02:00
Laurent Clouet
70d7dc052c Handle new protocole value 2020-10-10 10:52:39 +02:00
Luis Uguina
d152e0b0ff Feature: add session data consumption information in GUI/text UIs (#287)
* Feature: add session data consumption information in GUI/text UIs

Adds the total bytes downloaded and uploaded in the current session as well as the average data transfer rate for both UL/DL. The information is not added to the 1-line UI as the line will take 150+ characters in the screen.
2020-09-12 02:00:24 +02:00
Luis Uguina
04be222f00 Cleanup: remove unused imports (#294) 2020-09-08 01:00:44 +02:00
Laurent Clouet
14447df154 Ref: rename variable 2020-08-29 16:18:00 +02:00
Luis Uguina
a119fc2e2d Fix: Display error & stop retrying in case of test frames render error (#289) 2020-08-29 16:15:01 +02:00
Luis Uguina
9f5c35d02f Feature: allow the client to shut down the computer at or after a certain time (#249)
A new -shutdown <time> option has been created to specify the time when the client will stop asking for new jobs, will finish uploading the frames in the upload queue and will shutdown the computer. The time argument can have two different formats: an absolute date & time in the format yyyy-MM-ddThh:mm:ss (24h format) or a relative time in the format +m where m is the number of minutes from now.

The user can also select the shutdown-mode, where "wait" will wait for all the processes (render + pending uploads) to finish and "hard" will cancel all the pending jobs and will initiate the computer shutdown.
2020-07-27 16:49:36 +02:00
Luis Uguina
f3538eafde Fix: NULL MimeType when sending files without extension (#270) 2020-06-21 11:16:18 +02:00
Luis Uguina
375ff311d4 Fix: add RENDERER_KILLED_BY_USER to download checks (#271) 2020-06-21 11:15:53 +02:00
Luis Uguina
cc99f3a146 Fix: unable to show the message error in case of HTTP return code != Error.Type.OK (#272) 2020-06-21 11:15:30 +02:00
Luis Uguina
b4511e7730 Feature: check for HTTP 413 (Entity too large) errors (#264) 2020-06-20 18:42:20 +02:00
Luis Uguina
57cae65412 Fix: allow to cancel download by user or server initiated reset (#266) 2020-06-20 18:36:55 +02:00
Luis Uguina
7685051662 Fix: Send reset signal to server on job upload error (#260)
* Fix: Send reset signal to server on job upload error
2020-06-18 13:57:52 +02:00
Luis Uguina
838cd7c0ec Fix: RENDERER_KILLED error sends a frame reset to server (#259) 2020-06-18 10:43:18 +02:00
Luis Uguina
231c1ee448 Fix: remove unused checkpoints from memory (#258) 2020-06-16 14:03:17 +02:00
Luis Uguina
fe69d6faa2 Feature: in text UI, show downloads in a single-line (#250)
* Feature: show downloads in a single-line in text UIs
2020-06-14 12:01:32 +02:00
Luis Uguina
658e698cab Remove the 5 minutes wait for the RENDERER_KILLED_BY_USER_OVER_TIME error code (#251) 2020-06-08 10:07:49 +02:00
Luis Uguina
88921a58de Fix: error report not sent when no job allocated (#245) 2020-06-04 11:50:00 +02:00
Luis Uguina
c850a95ea4 Include a header in error log with the information summarised for easier admin analysis (#238) 2020-06-02 16:06:03 +02:00
Luis Uguina
4cf51013e6 Replace standard Java HTTP libraries with okHTTP (#237)
* Replace standard Java HTTP libraries with okHTTP
2020-06-01 11:15:44 +02:00
Luis Uguina
4fa6db2b8d Fix: pause request is lost when a "no-job" response is received from server (#233) 2020-05-28 15:04:42 +02:00
Laurent Clouet
44cf85739c Code formator (#236)
* Re-import code formator
2020-05-28 13:28:42 +02:00
Luis Uguina
b969077d18 Optimise the retries algorithm for the "no job" server response (#230)
* Implement an optimised retries algorithm for the "no job" server response

* formating

Co-authored-by: Laurent Clouet <laurent@nopnop.net>
2020-05-20 14:32:39 +02:00
Laurent Clouet
656985c538 Add new type of errror 2020-05-16 10:51:35 +02:00
Luis Uguina
642ad86419 Improve waiting messages to show the time of the next retry. (#225) 2020-05-16 10:42:16 +02:00
Luis Uguina
26155a28dc Fix: racing condition with messages when the queue is full (#223)
There was a racing condition between the queue full message and *any* error message where the later are overwritten by the former.
2020-05-11 13:51:36 +02:00
Luis Uguina
18b99ded40 fix: a ghost project is created when a job upload fails (#222) 2020-05-09 22:04:07 +02:00
Luis Uguina
d6984fa450 Feature: improve the application exit-button process (#214)
* Improve the application exit-button behaviour
2020-04-27 14:28:04 +02:00
Luis Uguina
aae5ec3254 Improve the pause button screen workflow (#216) 2020-04-26 15:35:05 +02:00
Luis Uguina
87533a1262 feature: improve user information on queued uploads (#210)
* feature: improve user information about queued uploads
2020-04-19 17:01:43 +02:00
Luis Uguina
433ed5ed74 fix: background uploads queuing not working properly (#209)
Fix the sync/async detection to ensure that handle the server side projects properly. The routine was incorrectly uploading sync files with the async routine and vice-versa.
2020-04-15 09:40:51 +02:00
Laurent Clouet
57bc27bdcf Feat: change the architecture of the 'sheepit network', instead of storing every frame,mp4,zip on a single server, use multiple servers(shepherds) 2020-04-14 17:35:54 +02:00
Laurent Clouet
08fe55564c Feat: Don't do last render image request, use local image 2020-04-14 17:32:22 +02:00
Luis Uguina
2e7755c823 Improve status messages (#202)
* Improve status messages

Add three new status messages (uploading frame, stopping the client and disconnecting from SheepIt servers) to keep the user better informed. Additionally, amended some existing messages to make them more user friendly, while maintaining the existing technical logs.
2020-04-11 11:53:55 +02:00
Laurent Clouet
53663a6933 Fix: nullpointerexception 2020-01-12 14:37:30 +01:00
Laurent Clouet
56239ae6dd Display global stats even when the session has no job 2019-09-09 10:25:12 +02:00
Laurent Clouet
e044c35ad7 Fix: all the directory cannot be removed because blender will reload some file even if the rendering has started 2019-08-22 21:34:34 +02:00
Laurent Clouet
3413301609 Moving to Intellij IDEA 2019-08-11 22:25:26 +02:00
Laurent Clouet
3230807a7d Migrate from ant to gradle 2019-08-10 22:09:32 +02:00
Laurent Clouet
9f1f509bb6 Use lombok annotation instead of get/set 2019-08-07 22:17:59 +02:00
Laurent Clouet
d38c8c5fcc Cleanup 2019-08-07 21:40:37 +02:00
Laurent Clouet
3e9d701d7c Cleaner version of removing project's directory 2019-08-07 18:40:02 +02:00
Laurent Clouet
de4dfcd047 Remove blend files after the render has started 2019-08-07 17:02:52 +02:00
Laurent Clouet
f68be624db Bugfix: wrong next request time detection 2019-03-06 21:12:08 +01:00
Laurent Clouet
388ec6fee5 cleaning directory in hope to recover 2019-02-23 11:30:52 +01:00
Laurent Clouet
ce4bcc75ba When fail with python error, cleaning directory in hope to recover 2019-02-22 13:53:47 +01:00