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

why SIGHUP signal not received when becoming an Orphaned Process Group

In the manual for GNU libc about orphaned process groups, it mentioned : “process groups that continue running even after the session leader has terminated are marked as orphaned process groups. When a process group becomes an orphan, its…
camino
  • 10,085
  • 20
  • 64
  • 115
5
votes
0 answers

javax.resource.ResourceException: Transaction is not active:

In production after two three days we start getting following exception: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f572ada:f5ff:52482a05:11a4 status: ActionStatus.ABORTED >; - nested…
anurag arya
  • 71
  • 1
  • 4
5
votes
3 answers

Running background processes after a web request

I'm interested in kicking off processes after a web request, or possibly forking a new process after the initial thread is finished. I would prefer not to use a cron, because of the nature of the the jobs I'll be running and how often they need to…
slothstronaut
  • 921
  • 1
  • 13
  • 15
5
votes
1 answer

Any way to snipe or terminate specific sidekiq workers?

Is it possible to snipe or cancel specific Sidekiq workers/running jobs - effectively invoking an exception or something into the worker thread to terminate it. I have some fairly simple background ruby (MRI 1.9.3) jobs under Sidekiq (latest) that…
Vic
  • 53
  • 3
5
votes
2 answers

How to fire Laravel Queues with beanstalkd

I'm pretty new to the whole Queue'd jobs thing in Laravel 4. I have some process heavy tasks I need the site to run in the background after being fired by the user doing a particular action. When I was doing the local development for my site I was…
Tyrone
  • 63
  • 1
  • 6
5
votes
1 answer

What's the difference between Gearman's job and task?

I'm trying to understand Gearman but until now I can't figure out what's the difference between task and job. I'm trying to create a client which will parse periodically (every 10 minutes) a XML page. Which is the best approach?
SilVeR AleCS
  • 93
  • 1
  • 5
5
votes
1 answer

How do I grant access to SQL Server Agent to be able to write/modify system files?

I have a job that has a stored procedure that runs BCP to QUERYOUT some data. If I run the QUERYOUT command by itself, it works. However, if I try to run it in a JOB, it creates the file but "hangs" and the data is never put in the file. This hangs…
JJ.
  • 9,580
  • 37
  • 116
  • 189
5
votes
4 answers

spring batch| Graceful job termination within the job

After launching a job, in the before job - there are certain occasions where we want to gracefully terminate the job (i.e. dont run the job at all but neither complain i.e .no exception). The current way of doing this looks like invoking…
Jaga
  • 393
  • 2
  • 5
  • 15
5
votes
2 answers

Wait for running jobs on exit of eclipse rcp app

i have an eclipse rcp app that does some work in a child thread periodically (every 5 sec). The thread executes a method to update the Status Line of the app to indicate that the work is finished. It looks like this: protected void…
Biene Maja
  • 313
  • 1
  • 3
  • 9
4
votes
2 answers

Running multiple scriptblocks at the same time with Start-Job (instead of looping)

Hi all! I've been looking for a way to make my script more efficient and I've come to the conclusion (with help from the nice people here on StackOverflow) that Start-Job is the way to go. I have the following foreach-loop that I would like to run…
Sune
  • 3,080
  • 16
  • 53
  • 64
4
votes
1 answer

Automatically pulling data from a PowerShell job while running

While trying to do something quite possibly beyond the means of PowerShell I seem to have ran into a brick wall. I have a main form script, which orchestrates most of my functions but I need another script to open a listener…
4
votes
2 answers

Databricks Dashboard auto refresh

For Data Visualisation purposes, I am using Databricks to create dashboards. This is achieved by creating charts in a notebook and linking those charts to the dashboard. But I'm facing an issue in refreshing the data linked to the dashboard. I tried…
Sanjay
  • 328
  • 1
  • 3
  • 13
4
votes
1 answer

Job with ShouldBeUnique never dispatched

I'm trying to dispatch a job which implements shouldBeUnique but it doesn't work, my job is never in the queue. If I remove ShouldBeUnique, it works as expected. I am using Redis. Do you guys have an idea what's happening? Here is my code…
DimZ
  • 297
  • 4
  • 18
4
votes
0 answers

Killing Sidecar container once main container is terminated in Jobs/Cron Jobs

We are facing an issue wrt sidecars in Jobs/Cron Jobs. We are using EFK stack for logging and using filebeat as a sidecar container for shipping logs from app to ElasticSearch. But while implementing this in Batch Jobs, the sidecar container is not…
ganga
  • 41
  • 2
4
votes
3 answers

Powershell jobs across sessions?

I've been exploring Powershell jobs (using Start-Job, Get-Job, Receive-Job, etc). Everything works great as long as I remain within the same powershell session/window, but if I open a new Powershell window and execute "Get-Job" it returns no…
DaveUK
  • 1,440
  • 3
  • 18
  • 31