jobs

Use qdel to delete all my jobs at once, not one at a time

不羁岁月 提交于 2019-12-02 14:09:46
This is a rather simple question but I haven't been able to find an answer. I have a large number of jobs running in a cluster (>20) and I'd like to delete them all and start over. According to this site I should be able to just do: qdel -u netid to get rid of them all, but in my case that returns: qdel: invalid option -- 'u' usage: qdel [{ -a | -c | -p | -t | -W delay | -m message}] [<JOBID>[<JOBID>]|'all'|'ALL']... -a -c, -m, -p, -t, and -W are mutually exclusive which obviously indicates that the command does not work. Just to check, I did: qstat -u <username> and I do get a list of all my

Hybris: how to schedule cornjob to work from 7am to 11pm?

回眸只為那壹抹淺笑 提交于 2019-12-02 13:59:38
问题 How to schedule cron job in Hybris, so that it triggers every hour between 7 am and 11 pm? 回答1: You can make use of a cron expression generator : https://www.freeformatter.com/cron-expression-generator-quartz.html Expression : 0 0 7-11 ? * * * 来源: https://stackoverflow.com/questions/48902966/hybris-how-to-schedule-cornjob-to-work-from-7am-to-11pm

Spring Batch - How to generate parallel steps based on params created in a previous step

旧街凉风 提交于 2019-12-02 08:55:34
Introduction I am trying to use jobparameters created in a tasklet to create steps following the execution of the tasklet. A tasklet tries to finds some files (findFiles()) and if it finds some files it saves the filenames to a list of strings. In the tasklet I pass the data as following: chunkContext.getStepContext().getStepExecution().getExecutionContext().put("files", fileNames); The next step is a parallel flow where for each file a simple reader-processor-writer step will be executed (if you are interested in how I got there please see my previous question: Spring Batch - Looping a reader

Hybris: how to schedule cornjob to work from 7am to 11pm?

有些话、适合烂在心里 提交于 2019-12-02 04:05:13
How to schedule cron job in Hybris, so that it triggers every hour between 7 am and 11 pm? You can make use of a cron expression generator : https://www.freeformatter.com/cron-expression-generator-quartz.html Expression : 0 0 7-11 ? * * * 来源: https://stackoverflow.com/questions/48902966/hybris-how-to-schedule-cornjob-to-work-from-7am-to-11pm

Code in Job's Script Block after Start-Process Does not Execute

こ雲淡風輕ζ 提交于 2019-12-02 01:41:18
问题 When I create a automation script with PowerShell 5.1, I got an issue – in a script block of a job, the code after Start-Process will not get chance to execute. Here’s a simple repro: Step 1 >> Prepare a .cmd file for Start-Process, the code in callee.cmd is: @echo off echo "Callee is executing ..." exit /B 0 Step 2 >> Prepare the PowerShell code, $scriptBlock = { $res = Start-Process -FilePath "cmd.exe" -Wait -PassThru -NoNewWindow -ArgumentList "/c .\callee.cmd" throw "ERROR!" } $job =

Step by Step!Kubernetes持续部署指南

為{幸葍}努か 提交于 2019-12-01 22:16:43
本文是作者通过亲身实践,从零基础开始,一步一步总结出来的Kubernetes持续部署工作流程。文章从前期的工具准备开始,到复刻存储库、测试、构建镜像、构建流水线最后进行部署,所有的工作流程都一一展现在文章中,对于想要拥有全自动持续交付流水线的用户将有很大的借鉴意义。 在很久很久以前的一份工作中,我的任务是将老式的LAMP堆栈切换到Kubernetes上。那会儿我的老板总是追逐新技术,认为只需要几天时间就能够完成新旧技术的迭代——鉴于那时我们甚至对容器的工作机制一无所知,所以不得不说老板的想法真的很大胆。 在阅读了官方文档并且搜索了很多信息之后,我们开始感到不知所措——有许多新的概念需要学习:pod、容器以及replica等。对我而言,Kubernetes似乎只是为一群聪明的开发者而设计的。 然后我做了我在这一状况下常做的事:通过实践来学习。通过一个简单的例子可以很好地理解错综复杂的问题,所以我自己一步一步完成了整个部署过程。 最后,我们做到了,虽然远未达到规定的一周时间——我们花了将近一个月的时间来创建三个集群,包括它们的开发、测试和生产。 本文我将详细介绍如何将应用程序部署到Kubernetes。阅读完本文之后,你将拥有一个高效的Kubernetes部署和持续交付工作流程。 持续集成与交付 持续集成是在每次应用程序更新时构建和测试的实践。通过以少量的工作

Code in Job's Script Block after Start-Process Does not Execute

做~自己de王妃 提交于 2019-12-01 21:51:49
When I create a automation script with PowerShell 5.1, I got an issue – in a script block of a job, the code after Start-Process will not get chance to execute. Here’s a simple repro: Step 1 >> Prepare a .cmd file for Start-Process, the code in callee.cmd is: @echo off echo "Callee is executing ..." exit /B 0 Step 2 >> Prepare the PowerShell code, $scriptBlock = { $res = Start-Process -FilePath "cmd.exe" -Wait -PassThru -NoNewWindow -ArgumentList "/c .\callee.cmd" throw "ERROR!" } $job = Start-Job -ScriptBlock $scriptBlock Wait-Job $job Receive-Job $job Write-Host($job.State) Step 3 >> Run the

Configuring Quartz.Net to stop a job from executing, if it is taking longer than specified time span

随声附和 提交于 2019-12-01 21:08:39
I am working on making a scheduler, just like Windows Scheduler using Quartz.Net. In Windows Scheduler, there is an option to stop a task from running if it takes more than the specified time. I have to implement the same in my scheduler. But I am not able to find any extension method/setting to configure Trigger or Job accordingly. I request some inputs or suggestions for it. You can write small code to set a custom timout running on another thread. Implement IInterruptableJob interface and make a call to its Interrupt() method from that thread when the job should be interrupted. You can

Running Powershell scripts through SQL

本小妞迷上赌 提交于 2019-12-01 18:31:40
I have a script that runs Invoke-SQLCmd against a SQLServer called Server1. Data that is collected from that is passed along to another script that is fired off against Server2 and the results are inserted back into a table on Server 1. On every Invoke-SQLCmd I have used the -user -password with an account that has sa permissions on both systems. When i run the script from the command shell or from the Poershell ISE my data is inserted into the table and every thing works fine; When i run it from within SQL nothing happens. I get no outputs ("null" is returned) when i use xp_cmdshell as below.

background task with an asp.net web application

喜欢而已 提交于 2019-12-01 12:14:37
Is this the technique to run a background job every x minutes: http://msdn.microsoft.com/en-us/library/system.threading.threadpool.queueuserworkitem%28VS.71%29.aspx So would I load this in the global.asax? I have written a couple of Blogs on background threads http://professionalaspnet.com/archive/2008/08/04/Creating-a-Background-Thread-to-Log-IP-Information.aspx http://professionalaspnet.com/archive/2009/09/21/Communication-With-a-Background-Thread-in-ASP.NET.aspx Another method is to have a page that when accessed, does the task you intend to do. Then you setup some process (a lot of hosting