pop
NoValidRequestFound
Bases: HordeAPIObjectBaseModel
Base class for the number of jobs a worker skipped for, and why.
v2 API Model: NoValidRequestFound
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
blacklist
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a generation with a word that this worker does not accept.
bridge_version
class-attribute
instance-attribute
How many waiting requests were skipped because they require a higher version of the bridge than this worker is running (upgrade if you see this in your skipped list).
kudos
class-attribute
instance-attribute
How many waiting requests were skipped because the user didn't have enough kudos when this worker requires
models
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a different model than what this worker provides.
nsfw
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a nsfw generation which this worker does not provide.
performance
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a higher performance than this worker provides.
untrusted
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a trusted worker which this worker is not.
worker_id
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a specific worker.
model_config
class-attribute
instance-attribute
is_empty
get_api_model_name
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
ImageGenerateJobPopSkippedStatus
Bases: NoValidRequestFound
The number of jobs a worker was skipped for, and why.
v2 API Model: NoValidRequestFoundStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
max_pixels
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a higher size than this worker provides.
unsafe_ip
class-attribute
instance-attribute
How many waiting requests were skipped because they came from an unsafe IP.
img2img
class-attribute
instance-attribute
How many waiting requests were skipped because they requested img2img.
painting
class-attribute
instance-attribute
How many waiting requests were skipped because they requested inpainting/outpainting.
post_processing
class-attribute
instance-attribute
How many waiting requests were skipped because they requested post-processing.
lora
class-attribute
instance-attribute
How many waiting requests were skipped because they requested loras.
controlnet
class-attribute
instance-attribute
How many waiting requests were skipped because they requested a controlnet.
step_count
class-attribute
instance-attribute
How many waiting requests were skipped because they requested more steps than this worker provides.
model_config
class-attribute
instance-attribute
blacklist
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a generation with a word that this worker does not accept.
bridge_version
class-attribute
instance-attribute
How many waiting requests were skipped because they require a higher version of the bridge than this worker is running (upgrade if you see this in your skipped list).
kudos
class-attribute
instance-attribute
How many waiting requests were skipped because the user didn't have enough kudos when this worker requires
models
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a different model than what this worker provides.
nsfw
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a nsfw generation which this worker does not provide.
performance
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a higher performance than this worker provides.
untrusted
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a trusted worker which this worker is not.
worker_id
class-attribute
instance-attribute
How many waiting requests were skipped because they demanded a specific worker.
get_api_model_name
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
ImageGenerateJobPopPayload
Bases: ImageGenerateParamMixin
Mixin for the additional image generation parameters used in dispatching a job to a worker.
v2 API Model: ModelPayloadRootStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
prompt
class-attribute
instance-attribute
The prompt to use for this image generation.
ddim_steps
class-attribute
instance-attribute
The number of image generation steps to perform.
n_iter
class-attribute
instance-attribute
The number of images to generate. Defaults to 1, maximum is 20.
model_config
class-attribute
instance-attribute
model_config = (
ConfigDict(frozen=True, extra="allow")
if not getenv("TESTS_ONGOING")
else ConfigDict(frozen=True, extra="forbid")
)
height
class-attribute
instance-attribute
The desired output image height.
width
class-attribute
instance-attribute
The desired output image width.
sampler_name
class-attribute
instance-attribute
The sampler to use for this generation. Defaults to KNOWN_IMAGE_SAMPLERS.k_lms.
karras
class-attribute
instance-attribute
Set to True if you want to use the Karras scheduling.
cfg_scale
class-attribute
instance-attribute
The cfg_scale to use for this generation. Defaults to 7.5.
denoising_strength
class-attribute
instance-attribute
The denoising strength to use for this generation. Defaults to 1.
clip_skip
class-attribute
instance-attribute
The number of clip layers to skip.
post_processing
class-attribute
instance-attribute
post_processing: list[
str
| KNOWN_UPSCALERS
| KNOWN_FACEFIXERS
| KNOWN_MISC_POST_PROCESSORS
] = Field(default_factory=list)
A list of post-processing models to use.
post_processing_order
class-attribute
instance-attribute
The order in which to apply post-processing models. Applying upscalers or removing backgrounds before facefixers costs less kudos.
facefixer_strength
class-attribute
instance-attribute
The strength of the facefixer model.
hires_fix
class-attribute
instance-attribute
Set to True if you want to use the hires fix.
hires_fix_denoising_strength
class-attribute
instance-attribute
The strength of the denoising for the hires fix second pass.
loras
class-attribute
instance-attribute
A list of lora parameters to use.
tis
class-attribute
instance-attribute
A list of textual inversion (embedding) parameters to use.
workflow
class-attribute
instance-attribute
The specific comfyUI workflow to use.
transparent
class-attribute
instance-attribute
When true, will generate an image with a transparent background
tiling
class-attribute
instance-attribute
Set to True if you want to use seamless tiling.
special
class-attribute
instance-attribute
Reserved for future use.
seed
class-attribute
instance-attribute
The seed to use for this generation. If not provided, a random seed will be used.
seed_variation
class-attribute
instance-attribute
Deprecated.
control_type
class-attribute
instance-attribute
The type of control net type to use.
image_is_control
class-attribute
instance-attribute
Set to True if the image is a control image.
return_control_map
class-attribute
instance-attribute
Set to True if you want the ControlNet map returned instead of a generated image.
extra_texts
class-attribute
instance-attribute
A list of extra texts and prompts to use in the comfyUI workflow.
use_nsfw_censor
class-attribute
instance-attribute
If the request is SFW, and the worker accidentally generates NSFW, it will send back a censored image.
get_api_model_name
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
post_processors_must_be_known
post_processors_must_be_known(
v: list[
str
| KNOWN_UPSCALERS
| KNOWN_FACEFIXERS
| KNOWN_MISC_POST_PROCESSORS
],
) -> list[
str
| KNOWN_UPSCALERS
| KNOWN_FACEFIXERS
| KNOWN_MISC_POST_PROCESSORS
]
Ensure that the post processors are in this list of supported post processors.
Source code in horde_sdk/ai_horde_api/apimodels/base.py
sampler_name_must_be_known
Ensure that the sampler name is in this list of supported samplers.
Source code in horde_sdk/ai_horde_api/apimodels/base.py
random_seed_if_none
If the seed is None, generate a random seed.
Source code in horde_sdk/ai_horde_api/apimodels/base.py
control_type_must_be_known
control_type_must_be_known(
v: str | KNOWN_IMAGE_CONTROLNETS | None,
) -> str | KNOWN_IMAGE_CONTROLNETS | None
Ensure that the control type is in this list of supported control types.
Source code in horde_sdk/ai_horde_api/apimodels/base.py
ExtraSourceImageMixin
Bases: ResponseRequiringDownloadMixin
Mixin for jobs which have extra source images.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | |
extra_source_images
class-attribute
instance-attribute
Additional uploaded images (as base64) which can be used for further operations.
model_config
class-attribute
instance-attribute
async_download_extra_source_images
async
async_download_extra_source_images(
client_session: ClientSession, *, max_retries: int = 5
) -> list[ExtraSourceImageEntry] | None
Download the extra source images concurrently.
You can also use get_downloaded_extra_source_images to get the downloaded images later, if needed.
Parameters:
-
client_session(ClientSession) –The aiohttp client session to use for downloading.
-
max_retries(int, default:5) –The maximum number of times to retry downloading an image.
Returns:
-
list[ExtraSourceImageEntry] | None–The downloaded extra source images.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
get_downloaded_extra_source_images
Get the downloaded extra source images.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
download_file_as_base64
async
Download a file and return the value as a base64 string.
Source code in horde_sdk/generic_api/apimodels.py
download_file_to_field_as_base64
async
download_file_to_field_as_base64(
client_session: ClientSession, url: str, field_name: str
) -> None
Download a file from a URL and save it to the field.
Parameters:
-
client_session(ClientSession) –The aiohttp client session to use for the download.
-
url(str) –The URL to download the file from.
-
field_name(str) –The name of the field to save the file to.
Source code in horde_sdk/generic_api/apimodels.py
async_download_additional_data
abstractmethod
async
Asynchronously download any additional data required for this response.
download_additional_data
abstractmethod
PopResponseModelMessage
Bases: _ResponseModelMessageData
The message data which appears in a job pop response.
v2 API Model: _OVERLOADED_MODEL
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
id_
class-attribute
instance-attribute
The ID of the message.
expiry
class-attribute
instance-attribute
The time at which this message expires.
model_config
class-attribute
instance-attribute
worker_id
class-attribute
instance-attribute
The ID of the worker that the message is for.
get_api_model_name
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
ImageGenerateJobPopResponse
Bases: HordeResponseBaseModel, ResponseRequiringFollowUpMixin, ExtraSourceImageMixin
Contains job data for workers, if any were available. Also contains data for jobs this worker was skipped for.
This is the key response type for all image workers as it contains all assignment data for the worker.
Represents the data returned from the /v2/generate/pop endpoint with http status code 200.
v2 API Model: GenerationPayloadStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 | |
id_
class-attribute
instance-attribute
(Obsolete) The UUID for this image generation.
payload
instance-attribute
The parameters used to generate this image.
skipped
class-attribute
instance-attribute
skipped: ImageGenerateJobPopSkippedStatus = Field(
default_factory=ImageGenerateJobPopSkippedStatus
)
The reasons this worker was not issued certain jobs, and the number of jobs for each reason.
model
class-attribute
instance-attribute
Which of the available models to use for this request.
source_image
class-attribute
instance-attribute
The URL or Base64-encoded webp to use for img2img.
source_processing
class-attribute
instance-attribute
If source_image is provided, specifies how to process it.
source_mask
class-attribute
instance-attribute
If img_processing is set to 'inpainting' or 'outpainting', this parameter can be optionally provided as the mask of the areas to inpaint. If this arg is not passed, the inpainting/outpainting mask has to be embedded as alpha channel.
r2_upload
class-attribute
instance-attribute
(Obsolete) The r2 upload link to use to upload this image.
r2_uploads
class-attribute
instance-attribute
The r2 upload links for each this image. Each index matches the ID in self.ids
ttl
class-attribute
instance-attribute
The amount of seconds before this job is considered stale and aborted.
messages
class-attribute
instance-attribute
The messages that have been sent to this worker.
model_config
class-attribute
instance-attribute
extra_source_images
class-attribute
instance-attribute
Additional uploaded images (as base64) which can be used for further operations.
time_constructed
property
The time the model was constructed (in epoch time).
source_processing_must_be_known
source_processing_must_be_known(
v: str | KNOWN_IMAGE_SOURCE_PROCESSING,
) -> str | KNOWN_IMAGE_SOURCE_PROCESSING
Ensure that the source processing is in this list of supported source processing.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
validate_id
Validate the ID is not an empty string.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
validate_ids_present
Ensure that either id_ or ids is present.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
get_api_model_name
classmethod
get_follow_up_default_request_type
classmethod
get_follow_up_failure_cleanup_request_type
classmethod
get_follow_up_returned_params
get_follow_up_failure_cleanup_params
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
get_extra_fields_to_exclude_from_log
ignore_failure
get_downloaded_source_image
get_downloaded_source_mask
async_download_source_image
Download the source image concurrently.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
async_download_source_mask
Download the source mask concurrently.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
async_download_additional_data
async
Download all additional images concurrently.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
download_additional_data
__eq__
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
__hash__
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
download_file_as_base64
async
Download a file and return the value as a base64 string.
Source code in horde_sdk/generic_api/apimodels.py
download_file_to_field_as_base64
async
download_file_to_field_as_base64(
client_session: ClientSession, url: str, field_name: str
) -> None
Download a file from a URL and save it to the field.
Parameters:
-
client_session(ClientSession) –The aiohttp client session to use for the download.
-
url(str) –The URL to download the file from.
-
field_name(str) –The name of the field to save the file to.
Source code in horde_sdk/generic_api/apimodels.py
async_download_extra_source_images
async
async_download_extra_source_images(
client_session: ClientSession, *, max_retries: int = 5
) -> list[ExtraSourceImageEntry] | None
Download the extra source images concurrently.
You can also use get_downloaded_extra_source_images to get the downloaded images later, if needed.
Parameters:
-
client_session(ClientSession) –The aiohttp client session to use for downloading.
-
max_retries(int, default:5) –The maximum number of times to retry downloading an image.
Returns:
-
list[ExtraSourceImageEntry] | None–The downloaded extra source images.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
get_downloaded_extra_source_images
Get the downloaded extra source images.
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
get_follow_up_extra_params
Return any additional information required from this response to submit a follow up request.
Source code in horde_sdk/generic_api/apimodels.py
get_follow_up_all_params
Return the required inf from this response to submit any follow up requests warranted from this response.
Note that this dict uses the alias field names (as seen on the API), not the python field names.
get_follow_up_failure_cleanup_params is not included.
This is used for context management.
Returns:
-
list[dict[str, object]]–list[dict[str, object]]: A list of dicts of parameter names and values for each follow up request.
Source code in horde_sdk/generic_api/apimodels.py
get_follow_up_failure_cleanup_request
Return the request for this response to clean up after a failed follow up request.
Source code in horde_sdk/generic_api/apimodels.py
get_follow_up_request_types
classmethod
Return a list of all the possible follow up request types for this response.
does_target_request_follow_up
Return whether the target_request would follow up on this request.
Parameters:
-
target_request(HordeRequest) –The request to check if it would follow up on this request.
Returns:
-
bool(bool) –Whether the
target_requestwould follow up on this request.
Source code in horde_sdk/generic_api/apimodels.py
get_sensitive_fields
classmethod
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
PopInput
Bases: HordeAPIObjectBaseModel
The input data for a image worker requesting jobs.
v2 API Model: PopInput
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
amount
class-attribute
instance-attribute
The number of jobs to pop at the same time.
bridge_agent
class-attribute
instance-attribute
bridge_agent: str | None = Field(
"unknown:0:unknown",
examples=[
"AI Horde Worker reGen:4.1.0:https://github.com/Haidra-Org/horde-worker-reGen"
],
max_length=1000,
)
The worker name, version and website.
nsfw
class-attribute
instance-attribute
Whether this worker can generate NSFW requests or not.
priority_usernames
class-attribute
instance-attribute
The usernames that should be prioritized by this worker.
require_upfront_kudos
class-attribute
instance-attribute
require_upfront_kudos: bool | None = Field(
default=False,
description="If True, this worker will only pick up requests where the owner has the required kudos to consume already available.",
examples=[False],
)
If True, this worker will only pick up requests where the owner has the required kudos to consume already available.
threads
class-attribute
instance-attribute
threads: int | None = Field(
default=1,
description="How many threads this worker is running. This is used to accurately the current power available in the horde.",
ge=1,
le=50,
)
How many threads this worker is running. This is used to accurately the current power available in the horde.
model_config
class-attribute
instance-attribute
get_api_model_name
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
ImageGenerateJobPopRequest
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin, PopInput
Request additional jobs, if any are available, for an image worker.
This is the key request type for all image workers as it contains all the parameters needed to request a job.
Represents a POST request to the /v2/generate/pop endpoint.
v2 API Model: PopInputStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/pop.py
bridge_version
class-attribute
instance-attribute
The version of the bridge this worker is running.
max_pixels
class-attribute
instance-attribute
The maximum number of pixels this worker can generate.
blacklist
class-attribute
instance-attribute
The list of words this worker will not accept in a prompt.
allow_img2img
class-attribute
instance-attribute
Whether this worker can generate img2img.
allow_painting
class-attribute
instance-attribute
Whether this worker can generate inpainting/outpainting.
allow_unsafe_ipaddr
class-attribute
instance-attribute
Whether this worker will generate from unsafe/VPN IP addresses.
allow_post_processing
class-attribute
instance-attribute
Whether this worker can do post-processing.
allow_controlnet
class-attribute
instance-attribute
Whether this worker can generate using controlnets.
allow_sdxl_controlnet
class-attribute
instance-attribute
Whether this worker can generate using SDXL controlnets.
allow_lora
class-attribute
instance-attribute
Whether this worker can generate using Loras.
extra_slow_worker
class-attribute
instance-attribute
Marks the worker as extra slow.
limit_max_steps
class-attribute
instance-attribute
Prevents the worker picking up jobs with more steps than the model average.
model_config
class-attribute
instance-attribute
amount
class-attribute
instance-attribute
The number of jobs to pop at the same time.
bridge_agent
class-attribute
instance-attribute
bridge_agent: str | None = Field(
"unknown:0:unknown",
examples=[
"AI Horde Worker reGen:4.1.0:https://github.com/Haidra-Org/horde-worker-reGen"
],
max_length=1000,
)
The worker name, version and website.
nsfw
class-attribute
instance-attribute
Whether this worker can generate NSFW requests or not.
priority_usernames
class-attribute
instance-attribute
The usernames that should be prioritized by this worker.
require_upfront_kudos
class-attribute
instance-attribute
require_upfront_kudos: bool | None = Field(
default=False,
description="If True, this worker will only pick up requests where the owner has the required kudos to consume already available.",
examples=[False],
)
If True, this worker will only pick up requests where the owner has the required kudos to consume already available.
threads
class-attribute
instance-attribute
threads: int | None = Field(
default=1,
description="How many threads this worker is running. This is used to accurately the current power available in the horde.",
ge=1,
le=50,
)
How many threads this worker is running. This is used to accurately the current power available in the horde.
apikey
class-attribute
instance-attribute
Defaults to ANON_API_KEY. See also .is_api_key_required()
accept
class-attribute
instance-attribute
The 'accept' header field.
client_agent
class-attribute
instance-attribute
The requesting client's agent. You should set this to reflect the name, version and contact information for your client.
get_api_model_name
classmethod
get_http_method
classmethod
get_api_endpoint_subpath
classmethod
get_default_success_response_type
classmethod
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
is_api_key_required
classmethod
validate_api_key_length
Validate that the API key is the correct length, or is the special ANON_API_KEY.
Source code in horde_sdk/generic_api/apimodels.py
get_api_endpoint_url
classmethod
Return the endpoint URL, including the path to the specific API action defined by this object.
Source code in horde_sdk/generic_api/apimodels.py
get_api_url
classmethod
get_success_status_response_pairs
classmethod
Return a dict of HTTP status codes and the expected HordeResponse.
Defaults to {HTTPStatusCode.OK: cls.get_expected_response_type()}, but may be overridden to support other
status codes.
Source code in horde_sdk/generic_api/apimodels.py
get_header_fields
classmethod
Return a list of field names from this request object that should be sent as header fields.
This is in addition to GenericHeaderFields's values, and possibly the API specific class
which inherits from GenericHeaderFields, typically found in the horde_sdk.<api_name>_api.metadata module.
Source code in horde_sdk/generic_api/apimodels.py
get_query_fields
classmethod
Return a list of field names from this request object that should be sent as query parameters.
This is in addition to GenericQueryFields's values, and possibly the API specific class
which inherits from GenericQueryFields, typically found in the horde_sdk.<api_name>_api.metadata module.
Source code in horde_sdk/generic_api/apimodels.py
get_number_of_results_expected
Return the number of (job) results expected from this request.
Defaults to 1, but may be overridden to dynamically change the number of results expected.
This is factored into context management; if the number of results expected is not met, the job is considered unhandled on an exception and followed up on to attempt to close it.
Source code in horde_sdk/generic_api/apimodels.py
get_requires_follow_up
Return whether this request requires a follow up request(s).
Returns:
-
bool(bool) –Whether this request requires a follow up request to close the job on the server.