scheduled-tasks

Trying to create a scheduled task to run once using C++ , Task Scheduler 1.0 on win7

廉价感情. 提交于 2019-12-21 04:34:19
问题 I'm trying to create a very simple program which will run Notepad after two minutes (these are all simplified to make a clearer question). I tried to merge some of MSDN's examples and to my surprise everything compiled successfully, when running the program a .job task is created in C:\Windows\Tasks . I don't see the new task in the "Task Scheduler" GUI program and I assume this is because "Task Scheduler" shows only Task Scheduler 2.0 tasks, but I'm not sure. The problem is that the task is

rails periodic task

浪尽此生 提交于 2019-12-21 03:38:14
问题 I have a ruby on rails app in which I'm trying to find a way to run some code every few seconds. I've found lots of info and ideas using cron, or cron-like implementations, but these are only accurate down to the minute, and/or require external tools. I want to kick the task off every 15 seconds or so, and I want it to be entirely self contained within the application (if the app stops, the tasks stop, and no external setup). This is being used for background generation of cache data. Every

Laravel 5.1 Task Scheduling on Windows

浪尽此生 提交于 2019-12-21 03:16:16
问题 I'm trying to get Laravel 5.1 Task Scheduling working on IIS. When I run a batch file using Windows task manager it will run the task one time only. How can I get ->everyMinute() to work? Windows batch file: cd c:\inetpub\myapp c:\PROGRA~2\PHP\php.exe artisan schedule:run 1>> NUL 2>&1 The kernel: class Kernel extends ConsoleKernel { protected $commands = [ \App\Console\Commands\MyCommand::class, ]; protected function schedule(Schedule $schedule) { $schedule->command('test')->everyMinute(); }

.net application failing when fired via scheduled task

风格不统一 提交于 2019-12-20 14:48:10
问题 I have a .net console application written in c# which does exactly what it should when run inside visual studio and when clicking the .exe file in the file system. It runs like a charm. BUT when I create a scheduled windows task either in my Windows 7 dev machine or the Windows 2008 R2 prod machine it fails to carry out the last step in the application. This step is to open a .doc in the background and covert it (simply running a save as) to a .docx. The application is designed to visita

.net application failing when fired via scheduled task

我只是一个虾纸丫 提交于 2019-12-20 14:43:13
问题 I have a .net console application written in c# which does exactly what it should when run inside visual studio and when clicking the .exe file in the file system. It runs like a charm. BUT when I create a scheduled windows task either in my Windows 7 dev machine or the Windows 2008 R2 prod machine it fails to carry out the last step in the application. This step is to open a .doc in the background and covert it (simply running a save as) to a .docx. The application is designed to visita

“Work stealing” vs. “Work shrugging”?

谁说我不能喝 提交于 2019-12-20 12:02:57
问题 Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy? By "work-shrugging" I mean pushing surplus work away from busy processors onto less loaded neighbours, rather than have idle processors pulling work from busy neighbours ("work-stealing"). I think the general scalability should be the same for both strategies. However I believe that it is much more efficient, in terms of latency & power consumption, to wake an

“Work stealing” vs. “Work shrugging”?

☆樱花仙子☆ 提交于 2019-12-20 12:00:31
问题 Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy? By "work-shrugging" I mean pushing surplus work away from busy processors onto less loaded neighbours, rather than have idle processors pulling work from busy neighbours ("work-stealing"). I think the general scalability should be the same for both strategies. However I believe that it is much more efficient, in terms of latency & power consumption, to wake an

How does a Celery worker consuming from multiple queues decide which to consume from first?

痞子三分冷 提交于 2019-12-20 10:24:15
问题 I am using Celery to perform asynchronous background tasks, with Redis as the backend. I'm interested in the behaviour of a Celery worker in the following situation: I am running a worker as a daemon using celeryd . This worker has been assigned two queues to consume through the -Q option: celeryd -E -Q queue1,queue2 How does the worker decide where to fetch the next task to consume from? Does it randomly consume a task from either queue1 or queue2 ? Will it prioritise fetching from queue1

Is it possible to run a cron job in a web application?

牧云@^-^@ 提交于 2019-12-20 10:13:06
问题 In a java web application (servlets/spring mvc), using tomcat, is it possible to run a cron job type service? e.g. every 15 minutes, purge the log database. Can you do this in a way that is container independent, or it has to be run using tomcat or some other container? Please specify if the method is guaranteed to run at a specific time or one that runs every 15 minutes, but may be reset etc. if the application recycles (that's how it is in .net if you use timers) 回答1: As documented in

How to convert Linux cron jobs to “the Amazon way”?

瘦欲@ 提交于 2019-12-20 07:58:15
问题 For better or worse, we have migrated our whole LAMP web application from dedicated machines to the cloud (Amazon EC2 machines). It's going great so far but the way we do crons is sub-optimal. I have a Amazon-specific question about how to best manage cron jobs in the cloud using "the Amazon way". The problem : We have multiple webservers, and need to run crons for batch jobs such as creating RSS feeds, triggering emails, many different things actually. BUT the cron jobs need to only run on