jobs

Limit number of concurrent powershell jobs

白昼怎懂夜的黑 提交于 2019-12-12 01:57:10
问题 I know this question has been asked before and i have seen a couple of possible solutions, but i can't seem to be able to make any of them work for my script. My script is not a finished product, needs some cleaning up, but it definitely works at the moment. The basic function of the script is that it creates snapshots of virtual machines, and then clones them for backup purposes. Everything works as expected, but the problem is it brings my vcenter to it's knees because it is flooding it

Running background job continuously in linux

房东的猫 提交于 2019-12-12 01:56:33
问题 Can anyone suggest how can i run a job in Linux continuously in background? Task of this job would be review some of the user accounts and see if they are active or not. Thanks, Tapan 回答1: CRONTAB!! Use the format * * * * * command Here is a helpful resource: Newbie: Intro to Cron 来源: https://stackoverflow.com/questions/18896893/running-background-job-continuously-in-linux

Laravel: Can I fail 'well' in an handle() of a Job?

霸气de小男生 提交于 2019-12-11 14:42:36
问题 I know that, if a job throw an Exception, the job fails, and will be retried automatically from queue worker in a few seconds. My question is: can i fail in a controlled way? I'd like to catch exceptions, create a more smal log, and, for example, return false to mark job as failed. Is there a way? Precisation: I DO NOT want to HANDLE failure. I want to provocate a failure without throwing exceptions. I some edge cases I need that jobs fails. But I also need to avoid to throw Exception to

Powershell command timeout

倾然丶 夕夏残阳落幕 提交于 2019-12-11 13:53:06
问题 I am trying to execute a function or a scriptblock in powershell and set a timeout for the execution. Basically I have the following (translated into pseudocode): function query{ #query remote system for something } $computerList = Get-Content "C:\scripts\computers.txt" foreach ($computer in $computerList){ $result = query #do something with $result } The query can range from a WMI query using Get-WmiObject to a HTTP request and the script has to run in a mixed environment, which includes

JobTracker UI not showing progress of hadoop job

纵饮孤独 提交于 2019-12-11 09:37:48
问题 I am testing my MR jobs under a single node cluster. Once I installed mahout 9 version Mapreduce jobs stopped showing the progress in jobtracker.(Dont know if that happened after mahout installation) When ever I run a job in my hadoop cluster it wont show the status in job tacker UI as previous and the execution log displaying in the console is also different (similar to mahout logs) Why is it so? Thanks In Advance. 回答1: Most probably you job might be running using LocalJobRunner. If your job

Play! framework: can I reschedule the job?

我只是一个虾纸丫 提交于 2019-12-11 07:41:22
问题 I'm using Play! framwork of version 1.2.4 In my application, I have implemented a number of scheduled jobs (descendants of play.jobs.Job ). Question Can I change the schedule of these jobs at runtime? My own findings At first glance, the job scheduling in Play! is done via play.jobs.JobsPlugin , which in turn uses JDK's java.util.concurrent.ScheduledThreadPoolExecutor instance which is publicly exposed. So far I came up with following approach: when it's the moment to change schedule, I

Android JobScheduler JobService not working

旧时模样 提交于 2019-12-11 06:14:27
问题 Hi I have implemented Android JobScheduler API which was working fine till recently but since 2/3 days there seems to be a inconsistent behaviour in jobs which are scheduled. Here is the jobinfo builder config : jobInfo = new JobInfo.Builder(118, new ComponentName(this, LocationJob.class)) .setBackoffCriteria(30000, JobInfo.BACKOFF_POLICY_EXPONENTIAL) .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) .setExtras(persistableBundle).build(); jobScheduler.schedule(jobInfo); Basic working is when

CloudWatch Events trigger on Amazon Transcribe event

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:35:04
问题 I'm working with the Amazon Transcribe service and trying to get CloudWatch Events to fire a Lambda function that executes a POST request to my API. Here's the Lambda function var querystring = require('querystring'); var http = require('http'); exports.handler = function(event, context) { var post_data = querystring.stringify( event ); // An object of options to indicate where to post to var post_options = { host: '193e561e.ngrok.io', port: '80', path: '/api/lambda', method: 'POST', headers:

Azure - multiple worker roles - Couldn't store job: Unable to store Job: 'job6', because one already exists with this identification

自闭症网瘾萝莉.ら 提交于 2019-12-11 03:55:54
问题 I'm using Quartz.Net scheduler to schedule my jobs. I'm using ADOJOBSTORE to store all these values. Couldn't store job: Unable to store Job: 'job6', because one already exists with this identification When I try to run it throwing the above error. Any idea? ILog log = LogManager.GetLogger(typeof(CronTrigger)); log.Info("------- Initializing -------------------"); // First we must get a reference to a scheduler ISchedulerFactory sf = new StdSchedulerFactory(); IScheduler sched = sf

Spring Batch - “job” scoped beans can not be injected into “job” or “step” scoped beans

亡梦爱人 提交于 2019-12-11 02:53:47
问题 I am using spring batch version 3.0.2.RELEASE and spring framework version 3.2.12.RELEASE. And I am trying to inject a job scoped bean to another job scoped bean. My configuration looks like this <bean id="beanA" class="com.trial.BeanA" scope="job" > <property name="beanB" ref="beanB" /> </bean> <bean id="beanB" class="com.trial.BeanB" scope="job"/> It throws an exception with details: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.beanA'