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
420
votes
9 answers

How do I use the nohup command without getting nohup.out?

I have a problem with the nohup command. When I run my job, I have a lot of data. The output nohup.out becomes too large and my process slows down. How can I run this command without getting nohup.out?
Ofer
  • 4,879
  • 6
  • 20
  • 26
270
votes
10 answers

How much does it cost to develop an iPhone application?

How much can a developer charge for an iPhone app like Twitterrific? I want to know this because I need such an application with the same functionality for a new community website. I can do Ruby but have no experience with Objective-C. So it would…
user27815
  • 2,339
  • 3
  • 14
  • 6
166
votes
2 answers

SLURM `srun` vs `sbatch` and their parameters

I am trying to understand what the difference is between SLURM's srun and sbatch commands. I will be happy with a general explanation, rather than specific answers to the following questions, but here are some specific points of confusion that can…
dkv
  • 6,602
  • 10
  • 34
  • 54
139
votes
4 answers

Exit zsh, but leave running jobs open?

Just switched from bash to zsh. In bash, background tasks continue running when the shell exits. For example here, dolphin continues running after the exit: $ dolphin . ^Z [1]+ Stopped dolphin . $ bg [1]+ dolphin . & $ exit This is…
Owen_AR
  • 2,867
  • 5
  • 20
  • 23
71
votes
9 answers

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

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…
Gabriel
  • 40,504
  • 73
  • 230
  • 404
64
votes
3 answers

How to restart some progress which is stopped by "ctrl+z"?

When I am using postgres -D /usr/local/pgsql/data to start the postgresql progress, I send a ctrl+z signal to stop it. And now when I used createuser and psql, it has no response. what can I do?
YOung
  • 938
  • 2
  • 10
  • 14
63
votes
7 answers

mongodb status of index creation job

I'm using MongoDB and have a collection with roughly 75 million records. I have added a compound index on two "fields" by using the following command: db.my_collection.ensureIndex({"data.items.text":1, "created_at":1},{background:true}). Two days…
Yair Avgar
  • 631
  • 1
  • 5
  • 5
63
votes
6 answers

how to kill hadoop jobs

I want to kill all my hadoop jobs automatically when my code encounters an unhandled exception. I am wondering what is the best practice to do it? Thanks
Frank
  • 7,235
  • 9
  • 46
  • 56
56
votes
6 answers

gitlab ci: Run build job when manual or when master only

Is it possible to have a gitlab-ci file wheres a build job defined with the following requirements: get executed when manual OR get executed by master push I thought of something like this, but this is poorly false: build_jar: stage:…
toni_maccaroni
  • 563
  • 1
  • 4
  • 6
52
votes
3 answers

Kubernetes - how to run job only once

I have a job definition based on example from kubernetes website. apiVersion: batch/v1 kind: Job metadata: name: pi-with-timeout-6 spec: activeDeadlineSeconds: 30 completions: 1 parallelism: 1 template: metadata: name: pi …
esio
  • 1,592
  • 3
  • 17
  • 30
47
votes
5 answers

Wait for kubernetes job to complete on either failure/success using command line

What is the best way to wait for kubernetes job to be complete? I noticed a lot of suggestions to use: kubectl wait --for=condition=complete job/myjob but i think that only works if the job is successful. if it fails, i have to do something…
ruazn2
  • 745
  • 2
  • 8
  • 15
46
votes
1 answer

Weird "jobs" behavior within zsh

I am getting weird behavior with the jobs, fg and bg commands in my zsh shell. Here is an example (this happens for all commands, not just python): $ python & [1] 21214 Python 2.7.8 (default, Oct 19 2014, 16:02:00) [GCC 4.2.1 Compatible Apple LLVM…
Ben Sandler
  • 2,223
  • 5
  • 26
  • 36
43
votes
11 answers

Laravel queued jobs processed immediately even with a delay

I'm currently developing my personal application that is about private servers (for example, Minecraft servers) and since querying the server takes some time, I decided to implement queued jobs. However, they are not working properly, and they run…
Micael Sousa
  • 1,129
  • 3
  • 10
  • 16
42
votes
4 answers

How to skip GitHub Actions job on push event?

With Travis CI, we can skip the build for a particular commit with adding a suffix to a commit. This is described at Travis CI. I find this feature practical when I only edit README.md which is not code-related and the pre-flight build doesn't need…
Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183
40
votes
8 answers

Spring and scheduled tasks on multiple instances

We have a Spring Boot application, and have scheduled tasks. We want to deploy our application on multiple servers, so will be multiple instances of application. How to configure Spring to run scheduled tasks only on specified servers?
Combo
  • 855
  • 2
  • 11
  • 22
1
2 3
99 100