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
37
votes
2 answers

What does the status "CG" mean in SLURM?

On a SLURM cluster one can use squeue to get information about jobs on the system. I know that "R" means running; and "PD" meaning pending, but what is "CG"? I understand it to be "canceling" or "failing" from experience, but does "CG" apply when a…
khaverim
  • 3,386
  • 5
  • 36
  • 46
34
votes
1 answer

bash: What is a jobspec

While reading documentation [1], the term "jobspec" appears a few times. What is a jobspec? [1] https://www.gnu.org/software/bash/manual/html_node/Job-Control-Builtins.html
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
33
votes
3 answers

Laravel commands and jobs

I was wondering what the difference is between the different command-like classes in Laravel 5.1. As far as I can tell Laravel 5.1 has the following available: Console commands (artisan make:console) Commands (artisan make:command) Handlers…
alexrussell
  • 13,856
  • 5
  • 38
  • 49
32
votes
5 answers

Kubernetes Job Cleanup

From what I understand the Job object is supposed to reap pods after a certain amount of time. But on my GKE cluster (Kubernetes 1.1.8) it seems that "kubectl get pods -a" can list pods from days ago. All were created using the Jobs API. I did…
Lior Regev
  • 450
  • 1
  • 6
  • 9
31
votes
6 answers

Debugging Laravel jobs

I am trying to debug jobs on a queue in Laravel but to no success. I want to print output into the console. Such as how you use dd() everywhere else.
Ian
  • 3,539
  • 4
  • 27
  • 48
31
votes
5 answers

" The job failed" in copying database SQL Server 2012

I'm trying to copy a database. When going through the Copy Database Wizard, I'm getting a Execute SQL Server Agent Job error. The error states The job failed. Check the event log on the destination server for details Performing operation Add log…
mohammad_hasan
  • 321
  • 1
  • 3
  • 6
31
votes
8 answers

Powershell: get output from Receive-Job

I have a collection of jobs that are running. When they complete I use receive-job and it writes the output to the screen. I'd like to take that output and log it to a file. I don't want to tee the output produced while the jobs are running because…
JDH
  • 2,618
  • 5
  • 38
  • 48
29
votes
2 answers

Difference between Action Job/Mailer's `deliver_now` and `deliver_later`

The common pattern for interfacing with ActiveJob in Rails is to set up a Job with a perform() method that gets called asynchronously via perform_now or perform_later In the special case of Mailers, you can directly call deliver_now or deliver_later…
user2490003
  • 10,706
  • 17
  • 79
  • 155
27
votes
9 answers

How do I Start a job of a function i just defined?

How do I Start a job of a function i just defined? function FOO { write-host "HEY" } Start-Job -ScriptBlock { FOO } | Receive-Job -Wait -AutoRemoveJob Result: Receive-Job: The term 'FOO' is not recognized as the name of cmdlet, function ,script…
Alex58
  • 1,121
  • 2
  • 10
  • 8
25
votes
1 answer

Which one to choose Apache Oozie or Apache Airflow? Need a comparison

I am new to job schedulers and was looking out for one to run jobs on big data cluster. I was quite confused with the available choices. Found Oozie to have many limitations as compared to the already existing ones such as TWS, Autosys, etc. Need…
Vishal786btc
  • 428
  • 1
  • 5
  • 17
25
votes
2 answers

laravel queues - how sync driver works? Does it executes in a separate process/thread or the main execution thread?

I am sending push notifications from my server and want it to simply be executed in a background process. I've read the Laravel docs and I know about database driver and some other options as well. I've got it working with database driver on my…
tmw
  • 1,424
  • 1
  • 15
  • 26
25
votes
5 answers

Executing SQL Server Agent Job from a stored procedure and returning job result

Need to have a stored procedure that calls a SQL Server Agent Job and returns whether or not the job ran successfully or not. So far I have CREATE PROCEDURE MonthlyData AS EXEC msdb.dbo.sp_start_job N'MonthlyData' WAITFOR DELAY '000:04:00' EXEC…
DtotheG
  • 1,277
  • 5
  • 21
  • 35
25
votes
5 answers

SQL Agent Job - "Run As" drop down list is empty

Why is the "Run As" drop down list is always empty when I try to set up a SQL Agent Job? I am trying to set up some SQL Agent Jobs to run using a proxy account. I am a member of the SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole.…
Edward Pescetto
  • 856
  • 1
  • 7
  • 16
23
votes
3 answers

Sidekiq stop one single, running job

So I need to stop a running Job in Sidekiq (3.1.2) programmatically, not a scheduled one. I did read the API documentation but didn't really find anything about cancelling running jobs. Is this possible with sidekiq? When this is not directly…
Figedi
  • 383
  • 1
  • 2
  • 11
23
votes
1 answer

Prevent Bamboo from failing job when failing tests are moved to quarantine

On Bamboo I have MSBuild job for building and running tests. It works fine - but I want to use test quarantine option so when I have some test moved to quarantine (and this moved tests are only what fail) job will be marked as successful I moved one…
pbaranski
  • 22,778
  • 19
  • 100
  • 117