Skip to content

Commit

Permalink
Fix outdated MR
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 19, 2023
1 parent 2cb5a85 commit e4d104f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dependencies:
- moto
- aiobotocore
- botocore
- pip
- pip:
- types-aiobotocore[essential]
- boto3-stubs[essential]
2 changes: 1 addition & 1 deletion src/diracx/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class JobStatus(StrEnum):
RESCHEDULED = "Rescheduled"


class JobMinorStatus(str, Enum):
class JobMinorStatus(StrEnum):
MAX_RESCHEDULING = "Maximum of reschedulings reached"
RESCHEDULED = "Job Rescheduled"

Expand Down
4 changes: 2 additions & 2 deletions src/diracx/routers/job_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async def reschedule_bulk_jobs(
job_ids: Annotated[list[int], Query()],
job_db: JobDB,
job_logging_db: JobLoggingDB,
user_info: Annotated[UserInfo, Depends(verify_dirac_access_token)],
user_info: Annotated[AuthorizedUserInfo, Depends(verify_dirac_access_token)],
):
rescheduled_jobs = []
# TODO: Joblist Policy:
Expand Down Expand Up @@ -349,7 +349,7 @@ async def reschedule_bulk_jobs(
async def reschedule_single_job(
job_id: int,
job_db: JobDB,
user_info: Annotated[UserInfo, Depends(verify_dirac_access_token)],
user_info: Annotated[AuthorizedUserInfo, Depends(verify_dirac_access_token)],
):
try:
result = await job_db.rescheduleJob(job_id)
Expand Down

0 comments on commit e4d104f

Please sign in to comment.