Code Monkey home page Code Monkey logo

Comments (4)

guryanovev avatar guryanovev commented on August 19, 2024

The panel opening/closing should not affect scheduler in any way, so your issue is probably caused by some other reason, maybe related to scheduler lifecycle. Can you please share the code you use to create/initialise your scheduler instance?

from crystalquartz.

SkyQuant avatar SkyQuant commented on August 19, 2024

I just moved my Job to Owin based project and have the same problem setting up scheduler like in code here: https://github.com/guryanovev/CrystalQuartz/blob/master/examples/02_Owin_Web_Simple/CrystalQuartz.Samples.OwinSimple/Startup.cs

I have 3 executed task with 10 min interval, then scheduler switches to pause. I don't know why.

from crystalquartz.

guryanovev avatar guryanovev commented on August 19, 2024

Just double-checking, so the panel is working, but scheduler display as paused? yellow circle icon? What happens if you click "Start Scheduler" or other control buttons?

I can gues two variants:

  1. If you are hosting the app inside IIS it might be AppPool shutting down issue (see https://technet.microsoft.com/en-us/library/cc771956(v=ws.10).aspx)

  2. I never faced this problem but there is some evidence that GC can cause scheduler shutting down. (http://stackoverflow.com/questions/11082754/quart-net-suddenly-stops-triggering-jobs) This could be fixed by making scheduler static:

     public class Startup
     {
         public static IScheduler scheduler;
    
         public void Configuration(IAppBuilder app)
         {
             scheduler = StdSchedulerFactory.GetDefaultScheduler();
             //...
         }
     }
    

from crystalquartz.

SkyQuant avatar SkyQuant commented on August 19, 2024

Oh, I found that it depends on pricing plan chosen in Azure. On Free option site goes "sleep" after half an hour and scheduler lights as yellow circle. But switching to Standard tariff makes it working without pauses. Sorry for alarming.

P.S. I made scheduler static yesterday and it didn't solved the problem. I also planned to resolve a scheduler from container as singleton instance on the next experiment.

from crystalquartz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.