scheduled-tasks

Quartz.NET vs Windows Scheduled Tasks. How different are they?

柔情痞子 提交于 2019-12-17 18:37:09
问题 I'm looking for some comparison between Quartz.NET and Windows Scheduled Tasks? How different are they? What are the pros and cons of each one? How do I choose which one to use? TIA, 回答1: With Quartz.NET I could contrast some of the earlier points: Code to write - You can express your intent in .NET language, write unit tests and debug the logic Integration with event log, you have Common.Logging that allows to write even to db.. Robust and reliable too Even richer API It's mostly a question

Is there any way for a win2k8 scheduled task to have normal priority IO?

筅森魡賤 提交于 2019-12-17 17:37:03
问题 I have a scheduled task that is very IO intensive (deleting hundreds of thousands of files). For disk space reasons, this job has to be performed reasonably quickly. On win2k8, scheduled tasks always have a low IO priority. Raising the priority of the process did not change the IO priority. Is there any way to get a scheduled task to have a normal IO priority? 回答1: Create the task Right click on the task and "export" it Edit the task.xml file that you just exported You will find a line

schedule an email in php

我们两清 提交于 2019-12-17 17:16:34
问题 I want to schedule sending of email from php script. I want user to specify date and time and then on the specified date and time, I want those emails to be sent automatically. How do I implement it? I am working on codeigniter. 回答1: One way to do it would be to create a "scheduled_emails" database table. Put all the emails you want to queue in there, including columns such as, recipient, subject, message and optional headers. You could then set up a script to look at that table and send any

How to stop a Runnable scheduled for repeated execution after a certain number of executions

血红的双手。 提交于 2019-12-17 15:37:26
问题 Situation I have a Runnable. I have a class that schedules this Runnable for execution using a ScheduledExecutorService with scheduleWithFixedDelay. Goal I want to alter this class to schedule the Runnable for fixed delay execution either indefinitely, or until it has been run a certain number of times, depending on some parameter that is passed in to the constructor. If possible, I would like to use the same Runnable, as it is conceptually the same thing that should be "run". Possible

PowerShell script won't execute as a Windows scheduled task

ε祈祈猫儿з 提交于 2019-12-17 15:35:41
问题 I have a PowerShell script (that works). In Windows Task Scheduler I created a new task to execute "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" , passing the argument as my PS1 script. When the task runs I get a Last Run Result of 0x1 . I updated my script to write to a log file when the script opens and that isn't happening. It's almost like the task can't even open Powershell.exe. Does this sound accurate? What could the issue be or how do I work around it? 回答1: If the

Excel VBA - Email Does not Send When Computer is Locked

自古美人都是妖i 提交于 2019-12-17 09:47:59
问题 I'm having problems sending outlook emails using Excel VBA. I have the code to do it - Sendupdate - and it works fine when I manually run the macro. My second macro StartTimer is intended to execute the above at a set time when I am not at my desk. However, when the computer is locked the email does not send. When I come back to my desk the email is hanging there as a draft, and I need to click the send button. Here is my code: Sub SendUpdate() Recipient = "x@y.com" Subj = "update" Dim msg As

How can I schedule a Task to execute at a specific time using celery?

China☆狼群 提交于 2019-12-17 08:51:27
问题 I've looked into PeriodicTask , but the examples only cover making it recur. I'm looking for something more like cron 's ability to say "execute this task every Monday at 1 a.m." 回答1: The recently released version 1.0.3 supports this now, thanks to Patrick Altman! Example: from celery.task.schedules import crontab from celery.decorators import periodic_task @periodic_task(run_every=crontab(hour=7, minute=30, day_of_week="mon")) def every_monday_morning(): print("This runs every Monday morning

Recommend a C# Task Scheduling Library [closed]

爱⌒轻易说出口 提交于 2019-12-17 07:07:55
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a C# library, preferably open source, that will let me schedule tasks with a fair amount of flexibility. Specifically,

How to stop a scheduled task that was started using @Scheduled annotation?

安稳与你 提交于 2019-12-17 06:34:21
问题 I have created a simple scheduled task using Spring Framework's @Scheduled annotation. @Scheduled(fixedRate = 2000) public void doSomething() {} Now I want to stop this task, when no longer needed. I know there could be one alternative to check one conditional flag at the start of this method, but this will not stop execution of this method. Is there anything Spring provides to stop @Scheduled task ? 回答1: Option 1: Using a post processor Supply ScheduledAnnotationBeanPostProcessor and

AlarmManager Android Every Day

喜夏-厌秋 提交于 2019-12-17 06:24:19
问题 I'm trying to make a Schedule. It should run every day at 1pm or 2pm... At the moment I can only make it run Every 10Sec or 10min... Intent myIntent = new Intent(AndroidAlarmService.this, MyAlarmService.class); pendingIntent = PendingIntent.getService(AndroidAlarmService.this, 0, myIntent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); calendar.add(Calendar.SECOND