Skip to content

Commit eab4864

Browse files
committed
Fix linking
1 parent 2320417 commit eab4864

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backend/btrixcloud/background_jobs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
SuccessResponse,
3232
SuccessResponseId,
3333
JobProgress,
34+
BackgroundJob,
3435
)
3536
from .pagination import DEFAULT_PAGE_SIZE, paginated_format
3637
from .utils import dt_now
@@ -44,7 +45,7 @@
4445

4546

4647
# ============================================================================
47-
# pylint: disable=too-many-instance-attributes
48+
# pylint: disable=too-many-instance-attributes, too-many-lines, too-many-return-statements, too-many-public-methods
4849
class BackgroundJobOps:
4950
"""k8s background job management"""
5051

@@ -807,6 +808,7 @@ async def retry_org_background_job(
807808
self, job: BackgroundJob, org: Organization
808809
) -> Dict[str, Union[bool, Optional[str]]]:
809810
"""Retry background job specific to one org"""
811+
# pylint: disable=too-many-return-statements
810812
if job.type == BgJobType.CREATE_REPLICA:
811813
job = cast(CreateReplicaJob, job)
812814
file = await self.get_replica_job_file(job, org)
@@ -872,7 +874,7 @@ async def retry_org_background_job(
872874
org,
873875
job.prev_storage,
874876
job.new_storage,
875-
existing_job_id=job_id,
877+
existing_job_id=job.id,
876878
)
877879
return {"success": True}
878880

0 commit comments

Comments
 (0)