job-scheduling

Windows Task Scheduler Doesn't Run VBScript

泄露秘密 提交于 2019-12-22 04:56:06
问题 I am trying to automate a VBScript by using Windows Task Scheduler. However, I tried to use cscript.exe + "C:\...\script.vbs" but it didn't run. I also tried to directly run the same command in CMD ( cscript.exe "C:\...\script.vbs" ) and it worked. What might be the problem? EDIT : I just tried to switch the setting to "Run only when user is logged on" from "Run whether user is logged on or not" and it worked. I am wondering if there is a way to make my task scheduled run even when the user

What's best practice for HA gearman job servers

和自甴很熟 提交于 2019-12-20 19:38:14
问题 From gearman's main page, they mention running with multiple job servers so if a job server dies, the clients can pick up a new job server. Given the statement and diagram below, it seems that the job servers do not communicate with each other. Our question is what happens to those jobs that are queued in the job server that died? What is the best practice to have high-availability for these servers to make sure jobs aren't interrupted in a failure? You are able to run multiple job servers

Combining Quartz.Net with UI

谁说胖子不能爱 提交于 2019-12-18 11:12:00
问题 I have been working on MVC3 project. I have just created Sample email sending job with Quartz.Net in my application. This time, I need to build a job scheduling system in my MVC3 project. The scenario is completely based on UI. It means, the users of the system have to enter the scheduling frequencies like, Defining a Job, Schedule time through the UI. I tried Quartz.Net 2.0.1. I dont have any idea that combining Quartz.Net with UI for scheduling. Is there any possibilities to attach a

Get an instance of the scheduler that is being run on a Windows service

你离开我真会死。 提交于 2019-12-18 05:13:13
问题 Let us say I have prepared my Quartz.NET as a Windows service and it is currently being run (with an ADOJobStore running on Sqlite ). I need to take control of this service on my Windows application so I can stop it, start it, add and remove jobs from it, etc. How can I get an instance of this scheduler? Sorry if it sounds like a simple question for you, but the documentation on Quartz.NET seems nowhere near enough. There are only a few people who know about it and they already have their

How jobs are assigned to executors in Spark Streaming?

孤者浪人 提交于 2019-12-17 16:33:11
问题 Let's say I've got 2 or more executors in a Spark Streaming application. I've set the batch time of 10 seconds, so a job is started every 10 seconds reading input from my HDFS. If the every job lasts for more than 10 seconds, the new job that is started is assigned to a free executor right? Even if the previous one didn't finish? I know it seems like a obvious answer but I haven't found anything about job scheduling in the website or on the paper related to Spark Streaming. If you know some

job scheduler in android N with less then 15 minutes interval

自古美人都是妖i 提交于 2019-12-17 16:16:35
问题 Part of my question, how I can set up a job with less then 15 minutes interval in "Nougat", was answerd by "blizzard" in his answer here: Job Scheduler not running on Android N He explained the problem and suggested to use the following workaround: JobInfo jobInfo; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { jobInfo = new JobInfo.Builder(JOB_ID, serviceName) .setMinimumLatency(REFRESH_INTERVAL) .setExtras(bundle).build(); } else { jobInfo = new JobInfo.Builder(JOB_ID, serviceName)

AutoSys Job multiple dependencies issue: s(1) & s(2) & s(3)

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:05:43
问题 I got 4 jobs: 1, 2, 3, 4. 2's condition: s(1); 3's condition: s(2); 4's condition: s(1) & s(2) & s(3) all these jobs are daily jobs the first day is ok. the second day, the 4th job triggered mutilple times : I think when 1 success, and the status of 2 and 3 are still 'success'(the last days status), so the job 4 triggered, then 2 success, triggered again... so is there any solution for this? becase I only want these condition is based on the current day's result. 回答1: This is already answered

JobService does not get rescheduled in android 9

依然范特西╮ 提交于 2019-12-13 13:27:24
问题 I'm trying to get my app working on Android 9. The following code works fine up to Android 8, but for some reason, the JobService does not get rescheduled on android 9. It gets scheduled the first time but does not get rescheduled according to the set periodic. class RetrieveJobService : JobService() { override fun onStartJob(params: JobParameters): Boolean { doBackgroundWork(params) return true } private fun doBackgroundWork(params: JobParameters) { Thread { try { doRetrieveBackgroundStuff

Why can't we calculate job execution time in Hadoop?

五迷三道 提交于 2019-12-13 04:53:51
问题 My question is related to Straggler problem. In sort, it's an algorithm and we can know its complexity and calculate the running time when executed on a constant set of data. Why can't we acquire job execution time in Hadoop ? If we can acquire the job execution time or task execution time, we can know the straggler tasks quickly without needing algorithms to know which task is Straggler. 回答1: You should not estimate how much time a job will take before running that job. After running your

How do I notify a Consumer job that Producer job is done?

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:17:20
问题 Using Spring/Quartz, I have an ProducerJob that is run first. Then I have a ConsumerJob that must wait for the result of ProducerJob (which creates records in the DB). What's the best way for ConsumerJob to be notified of the results of ProducerJob? Should I let ConsumerJob to constantly check the database, and sleep/wait if ProducerJob is not yet done? I realize my question may be similar to Pass BlockingQueue in JobDataMap of Quartz, although no specific implementation was identified. Still