The response to send back to the client (wrapped by a task).
PauseJob(PauseJobRequest, ServerCallContext)
public virtual Task<Job> PauseJob(PauseJobRequest request, ServerCallContext context)
Pauses a job.
If a job is paused then the system will stop executing the job
until it is re-enabled via
[ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state
of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if
paused it will be set to
[Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must
be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to
be paused.
The response to send back to the client (wrapped by a task).
ResumeJob(ResumeJobRequest, ServerCallContext)
public virtual Task<Job> ResumeJob(ResumeJobRequest request, ServerCallContext context)
Resume a job.
This method reenables a job after it has been
[Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state
of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state];
after calling this method it will be set to
[Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job
must be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]
to be resumed.
The response to send back to the client (wrapped by a task).
UpdateJob(UpdateJobRequest, ServerCallContext)
public virtual Task<Job> UpdateJob(UpdateJobRequest request, ServerCallContext context)
Updates a job.
If successful, the updated [Job][google.cloud.scheduler.v1.Job] is
returned. If the job does not exist, NOT_FOUND is returned.
If UpdateJob does not successfully return, it is possible for the
job to be in an
[Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED]
state. A job in this state may not be executed. If this happens, retry the
UpdateJob request until a successful response is received.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCloudScheduler.CloudSchedulerBase\u003c/code\u003e class provides the base for server-side implementations of the Google Cloud Scheduler v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis API offers methods to manage jobs, including creating, deleting, retrieving, listing, pausing, resuming, running, and updating jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 3.5.0, with several prior versions also available, such as 3.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eEach job management method uses a specific request object and server call context, and returns a task that includes the corresponding job or response information.\u003c/p\u003e\n"],["\u003cp\u003eJobs can be paused and resumed, with their state managed to reflect whether they are currently enabled or paused.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Scheduler v1 API - Class CloudScheduler.CloudSchedulerBase (3.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.4.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.3.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.2.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.1.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.0.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.3.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.2.0/Google.Cloud.Scheduler.V1.CloudScheduler.CloudSchedulerBase) \n\n [BindServiceMethod(typeof(CloudScheduler), \"BindService\")]\n public abstract class CloudScheduler.CloudSchedulerBase\n\nReference documentation and code samples for the Google Cloud Scheduler v1 API class CloudScheduler.CloudSchedulerBase.\n\nBase class for server-side implementations of CloudScheduler \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudScheduler.CloudSchedulerBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Scheduler.V1](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Scheduler.V1.dll\n\nMethods\n-------\n\n### CreateJob(CreateJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e CreateJob(CreateJobRequest request, ServerCallContext context)\n\nCreates a job.\n\n### DeleteJob(DeleteJobRequest, ServerCallContext)\n\n public virtual Task\u003cEmpty\u003e DeleteJob(DeleteJobRequest request, ServerCallContext context)\n\nDeletes a job.\n\n### GetJob(GetJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e GetJob(GetJobRequest request, ServerCallContext context)\n\nGets a job.\n\n### ListJobs(ListJobsRequest, ServerCallContext)\n\n public virtual Task\u003cListJobsResponse\u003e ListJobs(ListJobsRequest request, ServerCallContext context)\n\nLists jobs.\n\n### PauseJob(PauseJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e PauseJob(PauseJobRequest request, ServerCallContext context)\n\nPauses a job.\n\nIf a job is paused then the system will stop executing the job\nuntil it is re-enabled via\n\\[ResumeJob\\]\\[google.cloud.scheduler.v1.CloudScheduler.ResumeJob\\]. The state\nof the job is stored in \\[state\\]\\[google.cloud.scheduler.v1.Job.state\\]; if\npaused it will be set to\n\\[Job.State.PAUSED\\]\\[google.cloud.scheduler.v1.Job.State.PAUSED\\]. A job must\nbe in \\[Job.State.ENABLED\\]\\[google.cloud.scheduler.v1.Job.State.ENABLED\\] to\nbe paused.\n\n### ResumeJob(ResumeJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e ResumeJob(ResumeJobRequest request, ServerCallContext context)\n\nResume a job.\n\nThis method reenables a job after it has been\n\\[Job.State.PAUSED\\]\\[google.cloud.scheduler.v1.Job.State.PAUSED\\]. The state\nof a job is stored in \\[Job.state\\]\\[google.cloud.scheduler.v1.Job.state\\];\nafter calling this method it will be set to\n\\[Job.State.ENABLED\\]\\[google.cloud.scheduler.v1.Job.State.ENABLED\\]. A job\nmust be in \\[Job.State.PAUSED\\]\\[google.cloud.scheduler.v1.Job.State.PAUSED\\]\nto be resumed.\n\n### RunJob(RunJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e RunJob(RunJobRequest request, ServerCallContext context)\n\nForces a job to run now.\n\nWhen this method is called, Cloud Scheduler will dispatch the job, even\nif the job is already running.\n\n### UpdateJob(UpdateJobRequest, ServerCallContext)\n\n public virtual Task\u003cJob\u003e UpdateJob(UpdateJobRequest request, ServerCallContext context)\n\nUpdates a job.\n\nIf successful, the updated \\[Job\\]\\[google.cloud.scheduler.v1.Job\\] is\nreturned. If the job does not exist, `NOT_FOUND` is returned.\n\nIf UpdateJob does not successfully return, it is possible for the\njob to be in an\n\\[Job.State.UPDATE_FAILED\\]\\[google.cloud.scheduler.v1.Job.State.UPDATE_FAILED\\]\nstate. A job in this state may not be executed. If this happens, retry the\nUpdateJob request until a successful response is received."]]