Scheduling framework for time consuming tasks ?

Hello,
I was wondering what frameworks exist today to handle "time operations".
I have a job that will take ~20h to run (populating database list, based on conditions).
I need something that could handle that generation of this list for me, there are some cases to consider like what happens when we crash? What if more then 1 task was submitted to run? and co.
Generally speaking I'm looking for something like quartz, that could also implemented error handling.
Recommendations are welcome :)
Thank you,
Maxim.

What's wrong with Quartz? why not just use it? If it doesn't do what you need, I believe it is open source.
http://www.opensymphony.com/quartz/

Similar Messages

  • Time consuming task execution

    Need help.
    The task for servlet is:
    1. Get client's parameters
    2. Run very time consuming task (db copying)
    3. Return to client immediately after the task has started
    The question is: what is the standard way for resolving 2,3?
    Forward thanks.

    I had this before...I setup a separate application to do the time consuming task as a Thread with a ServerSocket on a random port on the machine.
    Then, in the Servlet, I opened a Socket to this port and wrote the command to start. The Servlet will return instantly, and then Thread application will kick off.
    Your Thread application may need to be capable of spawing multiple worker Threads if your DB copy can happen all the time, else you will need to have your Servlet check the status of the Thread. If busy, return to the user that the copy is still happening.

  • Using ProgressMonitor for unknown time-consuming task

    Hi,
    I have a time-conuming task that I don't know how long will it take, and I want to use ProgressMonitor.
    I tried to set the maximum to 100 like this:
    monitor = new ProgressMonitor(null, "", "", 0, 100);
    and then, after the task is finished - to do the following command:
    monitor.setProgress(100);
    but the progress monitor is never shown.
    what is the problem?
    thanks

    Per the API:
    A class to monitor the progress of some operation. If it looks like the operation will take a while, a progress dialog will be popped up. When the ProgressMonitor is created it is given a numeric range and a descriptive string. As the operation progresses, call the setProgress method to indicate how far along the [min,max] range the operation is. Initially, there is no ProgressDialog. After the first millisToDecideToPopup milliseconds (default 500) the progress monitor will predict how long the operation will take. If it is longer than millisToPopup (default 2000, 2 seconds) a ProgressDialog will be popped up.
    Do you call setProgress at any point?

  • Help with time consuming task

    Hi,
    I sent the same post to "New To Java", but i guess that it was the wrong place:
    I wrote a little program which copy a portion of File_1 to File_2, basically I tell it the start and end positions and the program extract the specified section from File_1 and copy it to File_2, so far so good, (the code):
    BufferedReader inFile = new BufferedReader(new FileReader(path1));
    BufferedWriter outFile = new BufferedWriter(new FileWriter (path2));
    outputSize = endPos - StartPos;
    inFile.skip(startPos);
    for (int i = 0; i < outputSize; i++){
         outFile.write(inFile.read());
    }The problems starts when the start position is at the end of File_1, for example, lets say File_1 = 300MB and i try to cut 5% to 15% (output of 10% - 30MB), the whole process takes about 3 seconds. But, if i try to cut 85% to 95% (the same output size) it can take me as long as 40 seconds.
    I'm sure its the skip() method but i don't know if I can do this task in a different way?.
    Thanks in advance.

    That was our first problem, because the logs are so big, some files get to 1 - 1.5 GB and the cuts we need are for very specific time windows, we first do a search in the file for our start time and end time (I found out that the total commander viewer is the fastest for this task) and once we have these positions we head to my program for cutting.

  • Since recent updates, I have noticed that my apps close automatically when I am distracted. In some cases it is time consuming to sign back in and get back to the task I was doing. Is it possible to change a setting so the apps will stay open?

    Since recent updates of iOS, I have noticed when using my iPad that my apps close automatically when I have to leave the room or am otherwise distracted for a few minutes. It is sometimes time consuming to sign back in and get back to the task where i left off. Is there a setting I can change so it will keep the apps open until I am ready to close them? Thanks for your help.

    Did you have this problem before Restoring you iPad?
    If you did then did you restore with a backup. You may have reinstalled something that is conflicting in this back up
    If not then sounds like either something went array with the clean install or a hardware issue.
    I know it's long winded but have you tired a clean install then downloading the apps again?
    PJRS

  • R1: tcAPIException: Duplicate schedule item for a task that does not allow multiples.

    Hi,
    I'm struggling with the following task:
    I have to assure an account exists for a given resource. I do provision it with the .tcUserOperationsIntf.provisionObject().
    I've created a createUser task to create the account.
    The task code checks if there is already matching account.
    If no account exists, is is created in the disabled state, and the object state of OIM account is set to 'Disabled' by means of task return code mapping.
    If it exists, it is 'linked' to OIM account.
    The problem is if the existing account is enabled, I have to change the OIM account state to 'Enabled' either.
    To implement this (thanks, Kevin Pinski https://forums.oracle.com/thread/2564011 )) I've created an additional task 'Switch Enable' which is triggered by a special task return code. This task always succeeds, and its only side effect is switching the object status to 'Enabled'.
    By I've getting the 'Duplicate schedule item for a task that does not allow multiples' exception constantly:
    This is the stack trace:
    Thor.API.Exceptions.tcAPIException: Duplicate schedule item for a task that does not allow multiples.\
      at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(tcUserOperationsBean.java:2925)\
      at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(tcUserOperationsBean.java:2666)\
      at Thor.API.Operations.tcUserOperationsIntfEJB.provisionObjectx(Unknown Source)\
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\
      at java.lang.reflect.Method.invoke(Method.java:601)\
      at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)\
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)\
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)\
      ...skipped
      at Thor.API.Operations.tcUserOperationsIntfDelegate.provisionObject(Unknown Source)\
      ... skipped
    What did I wrong?
    Regards,
    Vladimir

    Hi Vladimir,
    Please select 'Allow Multiple Instance' checkbox for the process task.
    Thanks,
    Pallavi

  • Is it possible to schedule updates for a specific time of day like 12am?

    Is it possible to schedule updates for a specific time of day like 12am?

    No. If you use Automatic Updates, the apps update when the updates are available. Read this for a little more information.
    http://9to5mac.com/2013/09/20/ios-7-how-to-set-up-automatic-app-updates/

  • BAPI_SCHEDULE_MAINTAIN throws error for time- independent scheduling agreement

    Hi All,
    I get the below error while modifying a stock transport Scheduling agreement in UI5 using BAPI “BAPI_SCHEDULE_MAINTAIN”
    “Scheduling agreements with time-independent conditions are not supported”
    Found a note 1046794-
    "BAPI_SAG_CHANGE (and BAPI_SAG_CREATE) can only treat scheduling agreements with time-dependent conditions. Document conditions are not supported. Therefore, this kind of scheduling agreements cannot be processed. This is a missing functionality”
    To meet some finance requirements, we need to use time-independent conditions in the scheduling sgreement, in order for a custom condition type to be picked up.
    I'd appreciate any advice I can get about how to fix this functionality in the BAPI or alternatively how to link the pricing condition type to the Scheduling agreement document type?
    Thanks so much.

    Link between Time dependent / independent condition and Scheduling agreement document type is in configuration  under SPRO>MM>PURCHASING>SCHEDULING AGREEMENT>DEFINE DOCUMENT TYPES>SCROLL TO THE RIGHT here you find a check box Time-D.C.
    Thanks
    DD

  • Duplicate records in PO scheduled line for framework order (going for dump)

    Hi all,
    i am creating framework purchase order with item category B. I am assigning external number range for PO. This PO is created with respect to expense PR. i just found there is duplicate records are appearing in schedule line for the same item.
    Then, after i save the PO, it is going for dump & sending some message to SAP inbox that there is duplicate records.
    later i can not find those PO in the system. Please let me know where i am doing mistake ? why duplicate records are appearing in PO scheduled line ?
    Thanks a lot
      pabi

    Hi,
    Once you please debug the particular program with the help of ABAPer. That may resolve your issue. Thanking you

  • I want to schedule my back ups to my Western Digital Elements HDD so that it doesn't interfere with my Skype calls with clients. Operating system - version 10.7.4. The default for Time Machine is to back up every 1 hour. I'd like daily at 3am. Any ideas?

    I want to schedule my back ups to my Western Digital Elements HDD so that it doesn't interfere with my Skype calls with clients. Operating system - version 10.7.4. The default for Time Machine is to back up every 1 hour. I'd like daily at 3am. Any ideas?

    Time Machine Editor.
    Clinton

  • How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    The iPhoto App can select all of the photos in the All Imported folder and delete them.

  • HT201272 I bought a season pass for a TV series on my MAC. It shows up on my Apple TV but isI not loaded. I had to download on my MAC the wait again to download on the Apple TV. Is this really how it is done? It is very time consuming.

    I bought a season pass for a TV series on my MAC. It shows up on my Apple TV but isI not loaded. I had to download on my MAC the wait again to download on the Apple TV. Is this really how it is done? It is very time consuming. What am I doing wrong?

    If you downloaded it to your Mac you don't watch it on your ATV unless you are using home sharing. Otherwise, you can stream it from your ATV directly from the store... which means you somewhat download it twice.

  • How can i have a multi task approach while working on my iPad? Shfting windows is heavy and time consuming!

    How can i have a multi task approach while working on my iPad? Shfting windows is heavy and time consuming!
    Also shifting windows while surfing is not easy, when used to multiple screens and easy shifting from one web page to another.
    Thks

    Not entirely sure what you mean, but this has some info about multi-tasking . iOS 5, which will be available to download on October 12th, adds multi-tasking gestures (from http://www.apple.com/ios/features.html#more) :
    Using four or five fingers, swipe up to reveal the multitasking bar, pinch to return to the Home screen, and swipe left or right to switch between apps.
    Also Safari will get tabbed browsing in iOS 5, making it easier to switch between pages/tabs.

  • Would be nice for Apple to create means for deleting email across all devices. Time consuming device by device especially for members receiving many emails. What do you think gang?!

    How about Apple creating a means to delete email across devices especially when you have like 4 Apple devices (Mac, Macbook Pro, iPad and iPhone) Would benefit those of us receiving 13 - 1700 messages across the products. iOS 8 coming in fall. What do you think gang. Very frustrating and time consuming!!

    If you have a suggestion for product improvement, provide feedback to Apple - you aren't talking to them here.

  • It there a way to disable the time consuming animation, when leafing through iCal for Lion?

    When klicking forward or backward the month- and year-view, iCal 5 displays displays a leafing animation. This is not only childish, but also time consuming. And iCal accepts only one click at a time. Klick. Watch the sheet leaf. Klick. Watch the sheet leaf. Klick. Watch the sheet leaf. In iCal 4 it was just: Klick. Klick. Klick. Ready.

    I fully agree with this, one of the examples Apple tries to comply too 'natural' with the OLD world. We have evaluated, we don't need these old leather calendars on our computer devices anymore. Anyway, does somebody know how to get rid of at least the nice but irritating animation?

Maybe you are looking for

  • How make a OAS Forms & Reports Services10.1.2.0.2 Capacity Planing

    Hi, I need to know, Wath considerations or matters I know to make a OAS Forms & Reports Services10.1.2.0.2 Capacity Planing on OEL 5.5 platform? Can you help me?

  • Question regarding implementation of Portal Service

    Hello, I want to create a portal service that calls our R/3 system and comes back with customer master data. For that I have to hand over the userid to the portal service. The Interface looks like that: import com.sapportals.portal.prt.service.IServi

  • How to select a different country in ESS Address information

    in ESS Personal Information Address iView, our employees need to be able to maintain foreign addresses and select from differenet countries in the country drop down. We performed the IMG customization step "Personnel Management->Employee Self Service

  • Requirement is getting generated multiple times on Running the MRP

    Dear All, I am attaching one Fert material to my project and generating reservation for this.while running the MRP through Tcode MD01,planned order is getting created and later on converted to production order.After confirmation of production order,t

  • Cell Coloring using DAX in SSAS Tabular Model

    HI All,  I need to implement  background and foreground cell coloring in SSAS Tabular Model using DAX or any other feasible solution similar to what Cell Properties does with MDX which is supported by SSAS Cubes.  Request the gurus to help me with th