diff --git a/broker/JFJochServices.h b/broker/JFJochServices.h index 20ef4eb6a..d4274dc29 100644 --- a/broker/JFJochServices.h +++ b/broker/JFJochServices.h @@ -17,7 +17,7 @@ struct JFJochServicesOutput { struct RugnuxLiveSettings { bool enable = false; int64_t reserved_cpus = 4; - double deadline_s = 0; // the analysis is cut this long after the last image (0 = never) + double deadline_s = 60; // the analysis is cut this long after the last image (0 = never) std::shared_ptr model; // null = no model int64_t model_size_bytes = 0; // as uploaded }; diff --git a/broker/gen/model/Rugnux_settings.cpp b/broker/gen/model/Rugnux_settings.cpp index 2c710e6dc..423b572f9 100644 --- a/broker/gen/model/Rugnux_settings.cpp +++ b/broker/gen/model/Rugnux_settings.cpp @@ -25,7 +25,7 @@ Rugnux_settings::Rugnux_settings() m_EnableIsSet = false; m_Reserved_cpus = 4L; m_Reserved_cpusIsSet = false; - m_Deadline_s = 0.0; + m_Deadline_s = 60.0; m_Deadline_sIsSet = false; } diff --git a/broker/jfjoch_api.yaml b/broker/jfjoch_api.yaml index 59ccbf326..9d4bdb96e 100644 --- a/broker/jfjoch_api.yaml +++ b/broker/jfjoch_api.yaml @@ -2706,7 +2706,7 @@ components: type: number format: double minimum: 0.0 - default: 0.0 + default: 60.0 description: | Fixed cutoff: this long after the last image the analysis is cut, and the collection ends with what it has established (as `POST /cancel` after the last image does). 0 means no cutoff. diff --git a/broker/redoc-static.html b/broker/redoc-static.html index d0feb243c..b4a051ab5 100644 --- a/broker/redoc-static.html +++ b/broker/redoc-static.html @@ -836,14 +836,14 @@ Changing detector will set detector to Inactive state and will requ
http://localhost:5232/config/select_detector

Response samples

Content type
application/json
{
  • "detectors": [
    ],
  • "current_id": 0
}

Change rugnux live mode settings

This can only be done when detector is Idle, Error or Inactive states.

Authorizations:
bearerAuth
Request Body schema: application/json
enable
boolean
Default: false

Process DECTRIS rotation collections with rugnux live

reserved_cpus
integer <int64> >= 0
Default: 4

CPU threads left to the receiver and the image pusher while rugnux runs

-
deadline_s
number <double> >= 0
Default: 0

Fixed cutoff: this long after the last image the analysis is cut, and the collection ends +

deadline_s
number <double> >= 0
Default: 60

Fixed cutoff: this long after the last image the analysis is cut, and the collection ends with what it has established (as POST /cancel after the last image does). 0 means no cutoff.

Responses

Request samples

Content type
application/json
{
  • "enable": false,
  • "reserved_cpus": 4,
  • "deadline_s": 0
}

Response samples

Content type
application/json
{
  • "msg": "Detector in wrong state",
  • "reason": "WrongDAQState"
}

Get rugnux live mode settings and model status

Can be done anytime

+
http://localhost:5232/config/rugnux

Request samples

Content type
application/json
{
  • "enable": false,
  • "reserved_cpus": 4,
  • "deadline_s": 60
}

Response samples

Content type
application/json
{
  • "msg": "Detector in wrong state",
  • "reason": "WrongDAQState"
}

Get rugnux live mode settings and model status

Can be done anytime

Authorizations:
bearerAuth

Responses