Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACS JobRouter] Python sdk customizations #26649

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ model SuspendMode extends JobMatchingMode {
kind: "suspend";
}

@access(Access.public, "python")
@doc("Request payload for deleting a job")
model CancelJobOptions {
@doc("A note that will be appended to the jobs' Notes collection with the current timestamp.")
Expand All @@ -502,12 +503,14 @@ model CancelJobOptions {
dispositionCode?: string;
}

@access(Access.public, "python")
@doc("Request payload for completing jobs")
model CompleteJobOptions {
@doc("A note that will be appended to the jobs' Notes collection with the current timestamp.")
note?: string;
}

@access(Access.public, "python")
@doc("Request payload for closing jobs")
model CloseJobOptions {
@doc("Indicates the outcome of the job, populate this field with your own custom values.")
Expand Down Expand Up @@ -565,6 +568,7 @@ model AcceptJobOfferResult {
workerId: string;
}

@access(Access.public, "python")
@doc("Request payload for declining offers")
model DeclineJobOfferOptions {
@doc("If the RetryOfferAt is not provided, then this job will not be offered again to the worker who declined this job unless the worker is de-registered and re-registered. If a RetryOfferAt time is provided, then the job will be re-matched to eligible workers at the retry time in UTC. The worker that declined the job will also be eligible for the job at that time.")
Expand Down