Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8172213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:42:40+00:00 2026-06-06T21:42:40+00:00

How do I create adojobstore with out throwing the following error: Unable to store

  • 0

How do I create adojobstore with out throwing the following error:

 Unable to store job because one already exists with this identification.

Can I read from the database and check if the job does not exist then add it to the scheduler?
Is that the recommended way of doing?

Is it necessary to Shutdown the scheduler on Azure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:42:42+00:00Added an answer on June 6, 2026 at 9:42 pm

    As you are using AdoJobStore, you are saving jobs in DB so you sure can check the existence of a job in table separately before scheduling a job otherwise just use AddJob with the same JobID and be sure to create a durable job.

    The job which can be reused must be durable, means jobs still exist even when it is not scheduled, which means there is no trigger attached to it. An example of durable job is as below:

    dJob = new JobDetail("consolidate-attendance", "daily-attendance-group", 
                  ConsolidateAttendance.class,
                  /* volatile */ false, 
                  /* durable */ true,
                  /* recover */ false);
    sched.addJob(jobContext, dJob, false);
    

    ScheduleJob has two version, one accept job with trigger and another job so you need to be sure which one you will use. If you have already define the job then you cannot use ScheduleJob which accepts both a job and a trigger because internally the scheduler would try to add the job to itself and fail.

    When job is already defined, you just need to bind job with trigger through via Trigger class and use the scheduleJob that only accepts a trigger.

    This should work and you don’t need to shutdown the scheduler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

CREATE OR REPLACE FUNCTION layer2layerAttribute RETURN VARCHAR2 AS /** * This function properly joins
create table ImagenesUsuario { idImagen int primary key not null IDENTITY } This doesn't
CREATE TABLE #Report( Cell int, CellValue double) Error here DECLARE @Report TABLE ( Cell
CREATE TRIGGER [dbo].[C1_Deletions] ON [dbo].[C1] INSTEAD OF DELETE AS SET NOCOUNT ON IF EXISTS
Create one listview and add the item in listview like listview1.Items.Add(new ListViewItem(hello i am
create unique index In DB2 UDB I can create an index using the following
CREATE TABLE DIALOGUE_TABLE(EXPIRE_TIME TIMESTAMP); Following code snippet is inside stored proc : PO_EXPIRETIME :-
CREATE DATABASE IF NOT EXISTS plaincart; USE plaincart; -- -------------------------------------------------------- -- -- Table structure
CREATE TABLE `tbl_atn` ( `atn_id` int(15) NOT NULL AUTO_INCREMENT, `eng_id` int(15) DEFAULT NULL, `visit`
CREATE TABLE #TEMPTABLE ( requestTime datetime2, NoOfSessions integer ) INSERT INTO #TEMPTABLE select convert(nvarchar(16),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.