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
17
votes
1 answer

Sun Grid Engine finished job info

Is there a way to list the node which executed a Sun Grid Engine job using qstat or other SGE commands? I have to get this information using a python script. I have figured out how to execute SGE commands from python but I didn't find the solution…
sc3w
  • 1,154
  • 9
  • 21
16
votes
3 answers

Where is the job support in Play 2.0?

In Play 1.0, we can define some jobs which will be executed in the background: @OnApplicatonStart @Every("1h") public class DataJob extends Job { public void doJob() { // ... } } But I can't find it in Play 2.0. Do I miss something?
Freewind
  • 193,756
  • 157
  • 432
  • 708
16
votes
4 answers

How to restart scheduled task on runtime with EnableScheduling annotation in spring?

I have been investigating how to change the frequency of a job on runtime with Java 8 and spring. This question was very useful but it did not totally solve my issue. I can now configure the date when to job should be executed next. But If set the…
Paul Fournel
  • 10,807
  • 9
  • 40
  • 68
16
votes
5 answers

How to kill all background processes in zsh?

As in the title - how to kill all background processes in zsh?
d33tah
  • 10,999
  • 13
  • 68
  • 158
16
votes
6 answers

How to check whether a background job is alive? (bash)

I have the following bash script, we can call it script1.sh: #!/bin/bash exec ./script2.sh & sleep 5 if job1 is alive then #<--- this line is pseudo-code! exec ./script3.sh & wait fi As can be seen, the script executes script2.sh as a…
XåpplI'-I0llwlg'I -
  • 21,649
  • 28
  • 102
  • 151
15
votes
7 answers

Scheduling A Job on AWS EC2

I have a website running on AWS EC2. I need to create a nightly job that generates a sitemap file and uploads the files to the various browsers. I'm looking for a utility on AWS that allows this functionality. I've considered the following: 1)…
threejeez
  • 2,314
  • 6
  • 30
  • 51
15
votes
1 answer

How can I easily make Github Actions skip subsequent jobs execution on certain condition?

I have an YAML Github Action script, which consists on three jobs. The nightly script should check if there are any user commits (which are not coming from an automatic jobs) and then perform nightly release build and deploy the build to the testing…
Patlatus
  • 1,217
  • 2
  • 16
  • 28
15
votes
1 answer

*Job Class* and Illuminate\Bus\Queueable define the same property ($connection) in the composition of *Job Class*

Despite the documentation declaring otherwise, attempting to set the connection name within a Job class can fail in Laravel with the error: [Job Class] and Illuminate\Bus\Queueable define the same property ($connection) in the composition of [Job…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
15
votes
4 answers

How to notify the user that a job has completed in Laravel?

in Laravel, you can use jobs to execute tasks in a back-end queue while the rest of the application does other things. i have a job that is initiated by user input. immediately, through javascript, i give the user a notification that the job is…
szaman
  • 2,159
  • 1
  • 14
  • 30
15
votes
2 answers

Retrieve result from 'task_id' in Celery from unknown task

How do I pull the result of a task if I do not know previously which task was performed? Here's the setup: Given the following source('tasks.py'): from celery import Celery app = Celery('tasks', backend="db+mysql://u:p@localhost/db", broker =…
Marc
  • 4,820
  • 3
  • 38
  • 36
14
votes
3 answers

Python framework for task execution and dependencies handling

I need a framework which will allow me to do the following: Allow to dynamically define tasks (I'll read an external configuration file and create the tasks/jobs; task=spawn an external command for instance) Provide a way of specifying dependencies…
Unknown
  • 5,722
  • 5
  • 43
  • 64
14
votes
3 answers

can we use dynamic jobs names in gitlab-ci.yml?

I have to migrate from jenkins to gitlab and I would like to be able to use dynamic job names in order to have some information directly in the pipeline summary without having to click on each job etc.... in jenkins we can immediately see the…
lepapareil
  • 491
  • 3
  • 6
  • 16
14
votes
1 answer

Multiple cronjobs at the same time

What happens if I task the machine to run 4 cronjobs at the same time period say 0 * * * * joba.sh 0 * * * * jobb.sh 0 * * * * jobc.sh 0 * * * * jobd.sh Will they be run one after each other independent of time itself or execute all at that point…
firepro20
  • 371
  • 2
  • 3
  • 14
14
votes
5 answers

how to send a custom object as Job Parameter in Spring Batch?

I have a requirement of sending a Custom Object to the Spring Batch Job , where this Object is used continuously used by the Item Processor for the business requirement. How can we send custom object from outside to the Job Context. This Object…
ravinder reddy
  • 309
  • 1
  • 4
  • 17
13
votes
2 answers

Kubernetes job and deployment

can I run a job and a deploy in a single config file/action Where the deploy will wait for the job to finish and check if it's successful so it can continue with the deployment?