If you aren't passing the data to a parent job and are instead keeping the data inside the same job (just multiple subjobs inside) you'd probably be better off with the tHash components. This allows you to cache some data (either in memory or temporarily to disk) and then retrieve...
stored-procedures,sql-server-2012,jobs,hang
Check out my blog post Unexplained SQL Server Timeouts and Intermittent Blocking Here is the section that might give you the clue you need. If the stored proc getUserPrivileges didn’t have enough problems for you, then let me add: it probably gets recompiled on each call. So SQL Server acquires...
The difference is about time rather than number of tasks. Fixed rate will keep track of time and spun new thread to match the fixed-time of 5 seconds. So in short, you would not have multiple threads as you are expecting. In 15 seconds, there should be three executions. But...
sql,oracle,triggers,packages,jobs
Depends somewhat on what you mean exactly by "broken", but if you mean that the code has been invalidated: SELECT object_type, object_name FROM user_objects WHERE status = 'INVALID' or use dba_objects if you have access to it and want to check all schemas at once....
The JobConfigHistory Plugin is ought to display a column User. And so does it in my Jenkins (v1.609.1) when I select a job's Job Config History at the bottom of the sidebar menu immediately after creating a job. (Though I agree: There's no Created there, just Changed. But, changing from...
javascript,node.js,jobs,child-process
You'll need to invoke done after a process has finished. Try this: function setup_R_job(opts,done) { log('starting '+opts.params.pop()); var params = opts.params; delete opts['params']; var R = spawn('phantomjs', params, opts); R.on('exit',function(code) { log('got exit code: '+code) done(); }) } You could also add some error handling there ie. but this might...
The issue ended up being the queue driver (in config/queue.php) was set to 'synchronous'.
You need to write the array out to standard out. $HSMissingEmail = New-Object System.Collections.ArrayList $HSDataObjects = New-Object System.Collections.ArrayList $HSMissingEmail = Start-Job -Name HSMissingEmailStatus -ScriptBlock { param($HSDataObjects, $HSMissingEmail); foreach ($HSDO in $HSDataObjects) { $HSDO = $HSDO | Select-Object Name, Location, Telephone, EmailAddress, Comments; if ($HSDO | Where-Object {$_.EmailAddress -like ""}) {...
background,parse.com,push-notification,jobs,cloud-code
Parse.Cloud.job("PushNtfct_job_TimeEnable", function(request, status) { function dateFormat(date, format) { // Calculate date parts and replace instances in format string accordingly format = format.replace("DD", (date.getDate() < 10 ? '0' : '') + date.getDate()); // Pad with 0 if needed format = format.replace("MM", (date.getMonth() < 9 ? '0' : '') + (date.getMonth()...
windows,variables,batch-file,jobs,overwrite
This is a common mistake when using FOR and parentheses. The problem is that by default every variable between ( and ) is evaluated when the line is first read, and then re-used for each iteration of the FOR. If the variable changes during the loop (via SET), then you...
Stackless Python is the answer to this, as it can serialize a full python process at any given time & then restart it later. http://www.stackless.com/wiki/Pickling...
There are two things going on here. First there is an error in pbs_python that maps the 15025 error code to "Queue already exists". Looking at the source of torque we see that 15025 actually maps to the error "Bad UID for job execution", this means that on the torque...
security,jenkins,jobs,master-slave
I have found this plugin which does exactly what I wanted. It restricts the job execution on a node base on the job name https://wiki.jenkins-ci.org/display/JENKINS/Job+Restrictions+Plugin Thanks for your time anycase...
You can try this: # .. preliminary work .. webserver & PID=$! test_suite & (wait $!; kill $PID) This will work as long as you don't mind both commands being run in the background. What happens here is: The webserver is started in the background. The pid of it is...
dbo.sp_start_job just starts off the job and returns immediately. It doesn't synchronously wait for the result of whatever processing the job is doing. You would probably see the expected error message if you check the job history....
ruby-on-rails,queue,task,jobs,sidekiq
You cannot do that. pidfile is designed to be a command line arg only.
javascript,node.js,cloud,parse.com,jobs
I don't think status.success() terminates the job (maybe status.error() does). In any example I have seen, status.success() is only used to indicate that the job has finished successfully. If status.success() is not called, the job will time out after 15 minutes. You need to use other functionality to abort code...
sql,sql-server,ssis,package,jobs
I find a solution for this problem. I created a batch file which executes this packages with the dtexec.exe Then I created a task (in the server task scheduler) which executes the batch file - now I have an automatically daily import without any problems....
Ultimately, I did have to use Write-Progress - the final code (which I'm not really proud of) looks like this: $child = Convert-VHD -Path $VHDPath -DestinationPath $NewVHDPath -ComputerName $TargetServer -VHDType Dynamic -ErrorAction 'SilentlyContinue' -AsJob $child.Name = "... primary conversion work for $VHDPath" Write-Progress -PercentComplete $child.Progress[-1].PercentComplete -Activity $child.ChildJobs[0].Progress[-1].Activity -Status $child.Progress[-1].StatusDescription while...
grails,cron,quartz-scheduler,jobs
You can use this: 0 0/1 * * * ? According to the doc Either Day-of-Week or Day-of-Month must be "?", or you will get an error since support by the underlying library is not complete. So you can't specify both fields, nor leave both as the all values wildcard...
I know of no way to modify the built in emails SQL Agent sends. The template is hard coded, as far as I'm aware. You could use customized notifications. Basically, add a step after the last step in SQL Agent, then use that step to send the success email. Since...
javascript,html,insert,cron,jobs
Use cURL or wget in your cron job script, with localhost as the hostname in the URL that you fetch. That way, you'll be invoking your web page via the web server (typically Apache, but not necessarily), which will run PHP. You'll have to set up a particular webpage/URL to...
ruby-on-rails,ruby,jobs,sidekiq
You should be able to set them in one place by modifying the default worker options: https://github.com/mperham/sidekiq/wiki/Advanced-Options#workers For example, config/initializers/sidekiq.rb: if Rails.env.development? Sidekiq.default_worker_options = { retry: false } end ...
windows,batch-file,jobs,rating
Check tooltipinfo.bat.If the passed item is rated it will have in the output something like : Rating: 5 Stars so you need the tooltipinfo.bat in your directory.Then create batch file like : (not tested) @echo off set folder_with_the_items=C:\photos_and_videos set destination_folder=C:\somewhere_else for /f "tokens=* delims=" %%a in ('dir /a:-d /b /s...
You have to setup the queue driver you want to use in your project's root dir's .env file. By default, the queue driver is sync which does exactly what you are describing, executing queues immediatly. You can choose of some different queue drivers such as beanstalked or redis (which would...
For anyone interested, I found my mistake! The below execution was successful: SQL> exec DBMS_SCHEDULER.DROP_JOB(job_name => '"MyCaseSensitiveJobName"'); PL/SQL procedure successfully completed. i.e. I should have wrapped the double-quoted job name in single qoutes! ...
java,eclipse-plugin,eclipse-rcp,rcp,jobs
Normally jobs show a progress indicator in the progress view and in the status line at the bottom of the main window. If you call setUser(true) before schedule() then the job will show a pop-up progress dialog if the job runs for more than a few seconds. To show job...
r,parallel-processing,apply,jobs,na
I got the answer. When we call big.mat we should use [,] so here's the partial answer. > colMeans(is.na(big.mat[,])) Year Month DayofMonth DayOfWeek 0.00000000 0.00000000 0.00000000 0.00000000 DepTime CRSDepTime ArrTime CRSArrTime 0.02102102 0.00000000 0.02402402 0.00000000 UniqueCarrier FlightNum TailNum ActualElapsedTime 1.00000000 0.00000000 0.97997998 0.02402402 CRSElapsedTime AirTime ArrDelay DepDelay 0.00000000 0.02402402 0.02402402...
sql,odbc,ibm-midrange,jobs,transfer
The table PEPAPPTS is not journaled on DB2 for i. Have the DB2 sysadmin journal the table. If that is unacceptable for some reason, turn off commitment control in your driver. Use IsolationLevel *NONE (or perhaps Chaos). For the documentation, see: Start > Programs > IBM i Access > Programmer's...
You should be using cron for this - not Beanstalkd. For Laravel 4 the best option is to use the Dispatcher package: https://github.com/Indatus/dispatcher This will allow you to schedule specific artisan commands to run at various times....
I unblocked the situation while getting aware that my hard drive was 90% full. At this level, hadoop refuses to write anymore logs. I just had to delete some (big !) files to get it running again...
Don't mix promises with callbacks, choose 1 of the 2 approaches and stick with it. Mixing and matching generally means something gets dropped and your function exits early without calling the status handler. Using promises will help you break the code up so its easier to follow. You shouldn't need...
The following should work: for (job in jenkins.model.Jenkins.theInstance.getProjects()) { if (job.name.startsWith("Data_jobs_")) { job.delete() } else if (job.name.startsWith("Data_jobs_server")) { job.disable() } } ...
Maybe you are looking for something like node-cron.
java,swing,jtable,quartz-scheduler,jobs
You need to fill up information in 2D array in your case. Code will look something like this - Object[][] data = new Object[9][2]; int i=0; List<JobExecutionContext> sf = scheduler.getCurrentlyExecutingJobs(); for (JobExecutionContext jobExecutionContext : sf) { data [i][0] = jobExecutionContext.getScheduler().getSchedulerName(); data [i][1] = jobExecutionContext.getJobDetail().getDescription(); i++; } ...
javascript,parse.com,cloud,jobs
The code snippet below shows how to save multiple objects by using Parse.Object.saveAll. Parse.Cloud.job("createMySpecialObjects", function(request, status) { var MySpecialObject = Parse.Object.extend("MySpecialObject"); var count = 20 // 20 is greater than 9! var toSaves = []; for (var i = 0; i < count; i++) { var myObject = new MySpecialObject();...
The problem turned out to be java. I had to reinstall java and use java 7. Something must have gotten messed up during my initial install of java.