add allow specify the task id and get the location of task in the queue of pending task

This commit is contained in:
gayshub
2023-12-15 16:57:17 +08:00
parent 4afaaf8a02
commit 1242ba08e1
4 changed files with 41 additions and 4 deletions

View File

@@ -1023,6 +1023,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
hr_sampler_name: str = None
hr_prompt: str = ''
hr_negative_prompt: str = ''
force_task_id: str = None
cached_hr_uc = [None, None]
cached_hr_c = [None, None]
@@ -1358,6 +1359,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
inpainting_mask_invert: int = 0
initial_noise_multiplier: float = None
latent_mask: Image = None
force_task_id: string = None
image_mask: Any = field(default=None, init=False)