Questions tagged [jobs]

A job is a process executing in the background, or scheduled for later execution. **DO NOT** use this tag for career, employment, or hiring practice questions, as these are off-topic!

A job in a batch processing system is a task scheduled for execution. For questions related to scheduling jobs, see .

In a Unix/Linux context, a job is a process or group of processes running in a terminal, which can be placed in the foreground or in the background. See . For questions about job control with a shell such as bash from a user's perspective, see the jobs and job-control tags on Unix Stack Exchange.

Note that questions related to jobs as in work, career are off-topic on Stack Overflow. Some questions about this topic are suitable for Workplace Stack Exchange; be sure to read the faq.

2834 questions
7
votes
2 answers

How to push job in specific queue and limit number workers with sidekiq?

I know we can do: sidekiq_options queue: "Foo" But in this case it's the Worker which is assigned to only one queue: "Foo". I need to assign a Job (and not a Worker) in specific queue. With Resque it's easy: Resque.enqueue_to(queue_name,…
Matrix
  • 3,458
  • 6
  • 40
  • 76
7
votes
1 answer

start a .exe in the background with parameters in a powershell script

I have a programm which i usually start like this in powershell: .\storage\bin\storage.exe -f storage\conf\storage.conf What is the correct syntax for calling it in the background? I tried many combinations like: start-job…
mles
  • 4,534
  • 10
  • 54
  • 94
7
votes
3 answers

Asynchronous job queue for web service in Clojure

At the moment I'm trying to construct a web service with a RESTful API that handles some long running tasks (jobs). The idea is that a user submits a job by doing a POST which returns some URL for checking the job status which also contains a url…
JoelKuiper
  • 4,362
  • 2
  • 22
  • 33
7
votes
1 answer

which is the correct way to delete multiple jobs in sql server

Im using SQL Server 2012 and I have a case where I have to delete sql jobs. I found two approaches which are as follows: Approach 1 DECLARE @jobId binary(16) WHILE (1=1) BEGIN SET @jobId = NULL SELECT TOP 1 @jobId = job_id FROM…
Harsha
  • 1,161
  • 4
  • 18
  • 38
7
votes
2 answers

"HasMoreData" is true even after Receive-Job

I create a simple background job in Powershell: Start-Job {"Hello"} I check with Get-Job: Id Name State HasMoreData Location Command -- ---- ----- ----------- -------- …
Joost
  • 1,126
  • 1
  • 10
  • 19
7
votes
3 answers

Why are Powershell Jobs so slow?

When I execute a simple statement locally $path = 'C:\Windows\System32\WindowsPowerShell\v1.0' gci $path I see the response immediately. But when I execute it as job on my local machine $start = get-date $path =…
bernd_k
  • 11,558
  • 7
  • 45
  • 64
6
votes
3 answers

hadoop only launch local job by default why?

I have written my own hadoop program and I can run using pseudo distribute mode in my own laptop, however, when I put the program in the cluster which can run example jar of hadoop, it by default launches the local job though I indicate the hdfs…
user974270
  • 627
  • 3
  • 8
  • 18
6
votes
3 answers

Running Powershell scripts through SQL

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…
furnace
  • 91
  • 1
  • 1
  • 4
6
votes
1 answer

Repeated "Not found: Job" error message on tab opening

I'm getting the following error message every time I open any new tab in BigQuery, or when I move between tabs. It's been happening now for a couple of months and it is driving me nuts! "Not found: Job xxx-xx-xxxxx:EU.bquxjob_4ee13939_17b074e777e"…
6
votes
1 answer

What's the difference between Laravels Queue\ShouldBeUnique and Queue\Middleware\WithoutOverlapping?

I have a job that is somehow getting kicked off multiple times. I want the job to kick off once and only once. If any other attempts to run the job while it's already on the queue, I want those runs to ABORT. I've read the Laravel 8 documentation…
Ben Barreth
  • 1,675
  • 1
  • 15
  • 16
6
votes
2 answers

How to define rules in gitlab "stages" so that no need to define separate rules for jobs

Suppose there are 4 jobs are define in stages . stages: build test deploy upload Now test, deploy and upload only run when pipeline trigger manually. We can define rule on separate jobs for this but it will be repetitive.(do not want to use…
Yashika Chandra
  • 163
  • 3
  • 13
6
votes
2 answers

How to run cron job when another cron job finishes?

How do I set up a cron job (cron2.php) to run after and only after a cron job (cron1.php) runs successfully?
Paul
  • 375
  • 2
  • 6
  • 10
6
votes
3 answers

How to run kubectl within a job in a namespace?

Hi I saw this documentation where kubectl can run inside a pod in the default pod. Is it possible to run kubectl inside a Job resource in a specified namespace? Did not see any documentation or examples for the same.. When I tried adding…
Vipin Menon
  • 2,892
  • 4
  • 20
  • 35
6
votes
1 answer

NodeJS how to retry queue job using bull in certain time after that job is failed

I'm trying to create a job that will retry in certain time after that job is failed using bull queue. But the job never delayed, always excute right after. Here my current code : const Queue = require('bull'); const queue = new Queue('send…
Billy Adelphia
  • 1,007
  • 4
  • 19
  • 31
6
votes
2 answers

Powershell: Updating GUI from background job results

EDIT : I was able to get it working, see below for my solution. The commenters below are correct that Powershell isn't really ideal for GUI's and threading, but it can be done. I've got a form in Powershell that uses Start-Job to run functions in…
Luke DeWitt
  • 63
  • 1
  • 5