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

How to get a list of Job Batches in Laravel 8

Laravel 8 introduced Job Batching, which allows to execute jobs in batches and perform actions on batch completion. The feature itself seems very useful, and it even has an Illuminate\Bus\Batch instance, which allows to inspect and interact with the…
Yerke
  • 2,187
  • 3
  • 19
  • 33
3
votes
1 answer

What is difference between Job, Queue, and Worker in Laravel?

I'm working on a Laravel project. I'm using job queue for doing some functions. I use supervisor for running job listening command. But I don't understand the concept well. Here are my questions. I have 8 workers. How do they involve in job queue…
Mg Mg Tint
  • 213
  • 1
  • 3
  • 11
3
votes
6 answers

Are threading issues for C/C++ "system level programmers" significantly different from those faced by Java programmers?

I'm looking for a development job and see that many listings specify that the developers must be versed in multithreading. This appears both for Java job listings, and for C++ listings that involve "system programming" on UNIX. In the past few…
Uri
  • 88,451
  • 51
  • 221
  • 321
3
votes
0 answers

How to efficiently use Kafka in place of Sidekiq for background Job in Rails?

Currently, I am to using sidekiq for background jobs in rails app. Now I want to use Kafka for the same using consumer-producer mechanism. For that I am using ruby-kafka and producing messages asynchronously. My approach: In the perform method of…
Shiv
  • 31
  • 5
3
votes
1 answer

Laravel queued jobs are not retrying when they fail

The problem I'm dispatching a job to execute an action that needs a resource ready to be correctly executed, so if it fails it needs to be retried after some time. But what really happens is that if it fails, it's not executed ever again. I'm using…
3
votes
1 answer

Container killed by YARN for exceeding memory limits. 6.0 GB of 6 GB physical memory used while running a pyspark job through dataproc cluster

Facing the below error when writing table to BigQuery from PySpark (Dataproc cluster). The reason for the below error seems to be Container killed by YARN for exceeding memory limits. 6.0 GB of 6 GB physical memory used. Consider boosting…
3
votes
1 answer

rq (redis queue) work-horse terminated unexpectedly, suggestions on how to debug?

I'm using a RQ worker to handle a large number of jobs, and I'm having problems. Observations Job returns work-horse terminated unexpectedly; waitpid returned None The job connects to a database and simply runs several SQL statement like a simple…
mj_
  • 6,297
  • 7
  • 40
  • 80
3
votes
2 answers

CRON JOB - Schedule Laravel command for different timezones - Manage for different regions

I'm using Laravel 5.8 and I like to auto-generate Invoices should be generated auto from Monday - Sunday. every Sunday night at 23:59:00 Let's say I have "23:59:00 according to the region time zone". Every store is related to a region, from the…
3
votes
1 answer

How to terminate currently runnig quartz job with overriding interrupt method that's coming from InterruptableJob interface?

I have some quartz jobs to process some data. I used InterruptableJob interface when writing these jobs. I have to add an interrupt feature to these jobs. When user press the terminate button, this method calling: @Override protected void…
İlkay Gunel
  • 712
  • 2
  • 11
  • 24
3
votes
1 answer

Kubernetes job to delete a single pod every minute

I'd like to create a Job to kill the following pod every single minute or any time when is created. My testing pod is: apiVersion: v1 kind: Pod metadata: name: myapp-pod labels: app: myapp spec: containers: - name:…
Nembone
  • 93
  • 8
3
votes
1 answer

Java distributed job monitoring

I'm using Quartz to regularly create a bunch of jobs that I sent to a queue (RabbitMQ) where they are picked up and executed by Akka actors. One piece that is missing is job monitoring. If one job fails, I don't even notice. The jobs are fairly…
stephanos
  • 3,319
  • 7
  • 33
  • 47
3
votes
1 answer

Laravel queue not honouring job specific timeout

According to the Laravel docs I should be able to specify a job specific timeout: If the timeout is specified on the job, it will take precedence over any timeout specified on the command line [...] So, when I run artisan queue:listen without the…
SomeCode
  • 179
  • 2
  • 15
3
votes
3 answers

Imperative command for creating job and cronjob in Kubernetes

Is this a valid imperative command for creating job? kubectl create job my-job --image=busybox I see this in https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands. But the command is not working. I am getting error as…
Rad4
  • 1,936
  • 8
  • 30
  • 50
3
votes
1 answer

How to use functions from a file in a background-job scriptblock

I have a problem with using a functions from file in a scriptblock. Function file name: functions.ps1. I'm prefering using functions in a file and normally it's works. But in a scriptblock which I'm using for jobs I have errors. Can you help me…
mino
  • 125
  • 2
  • 11
3
votes
1 answer

Laravel Not able to dispatch job from crontab

if i use this code in a controller queuing works well $job=(new ReProcessShipment($single_data->request_data))->delay(2); $this->dispatch($job); but using same code in crontab error throws Method App\Console\Commands\AddPreProcess::dispatch does…
phpdroid
  • 1,642
  • 1
  • 18
  • 36