none
test RRS feed

Answers

  • You need to connect to the cluster before creating the job:

     

    IScheduler scheduler = new Scheduler();

     

    scheduler.Connect("ccsv2-hn");

    ISchedulerJob job = scheduler.CreateJob();

    ...

    scheduler.SubmitJob(job, null,null);

     

    Regards,

     

    -Ming

     

    Tuesday, February 12, 2008 1:56 AM

All replies

  • ming,

     

    I need a job id returned so that i can save it together with my task output. The following snippet returns job.Id= -1.

     

    IScheduler scheduler = new Scheduler();

    ISchedulerJob job = scheduler.CreateJob();

    scheduler.Connect("ccsv2-hn");

    ...

    scheduler.SubmitJob(job, null,null); // job.Id= -1 here

     

    What should i do?

    Thanks,

    tpham

    Thursday, February 7, 2008 10:01 PM
  • Test ack.

    Monday, February 11, 2008 5:55 PM
  • You need to connect to the cluster before creating the job:

     

    IScheduler scheduler = new Scheduler();

     

    scheduler.Connect("ccsv2-hn");

    ISchedulerJob job = scheduler.CreateJob();

    ...

    scheduler.SubmitJob(job, null,null);

     

    Regards,

     

    -Ming

     

    Tuesday, February 12, 2008 1:56 AM