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

Retrieve the current execution status of an Agent SQL Job using RDS

I've used for years this query to monitor the execution of a job: SELECT j.name , ja.start_execution_date , Datediff(ss, ja.start_execution_date, Getdate()) AS 'HasRun(seconds)' FROM msdb.dbo.sysjobactivity ja INNER JOIN…
3
votes
2 answers

How to check php job instance

In my system, I've scheduled a PHP job to run each minute. Now I want that if 1 instance of this job is running and it takes more than 1 min, the new instance that starts after every minute checks if any previous instance is working and there is any…
awaiskhan200
  • 152
  • 1
  • 2
  • 10
3
votes
2 answers

laravel queue jobs for logging to DB?

I log some of the api requests. It is currently done sync and I would like to process this DB call async to allow faster response times for the actual api call. The way to do this in Laravel seems to be the queue/job system. However I am not sure…
Chris
  • 13,100
  • 23
  • 79
  • 162
3
votes
0 answers

Laravel 5.5 listen dynamically generated queues

My application requires to have dynamically generated queues with some prefix like "process_user_1", "process_user_2", "process_user_n" The main idea is to separate execution of some jobs depends on model ID. To run watcher I need execute command…
Alexandr
  • 817
  • 1
  • 8
  • 16
3
votes
1 answer

Trigger on WiFi connected Android

Background info So I have created an app that is mainly controlled by a notification that's supported by a service. This notification disapears when a user loses connection to a specific WiFi network, and has to appear when the user get's back home…
Beuz
  • 193
  • 1
  • 12
3
votes
2 answers

Nodejs and batch jobs

I have an server side nodejs express app that responds to requests from front end clients. I need to implement a batch job that will run every hour. If I implement the batch job in the same service, does it mean that the service is 'occupied' until…
sand
  • 137
  • 1
  • 2
  • 9
3
votes
3 answers

ORA-27465: invalid value 1 for attribute ARGUMENT_POSITION

I have procedure like this inside a package PROCEDURE prepBillInfoforAccrualIntr (p_date in date); -- created a program BEGIN DBMS_SCHEDULER.CREATE_PROGRAM(PROGRAM_NAME => 'MY_PROGRAM', PROGRAM_TYPE …
SK Yakub
  • 85
  • 2
  • 8
3
votes
0 answers

PowerShell Mutex & Jobs

I'm trying to run a PowerShell file delete operation that deletes files based on specific parameters. So, the code goes like this: $sb = { Get-ChildItem -Path $SubFolder | Remove-ChildItem if ($Error[0] -eq $null) { $results = …
mutukrp
  • 97
  • 1
  • 9
3
votes
2 answers

Code in Job's Script Block after Start-Process Does not Execute

When I create a automation script with PowerShell 5.1, I got an issue – in a script block of a job, the code after Start-Process will not get chance to execute. Here’s a simple repro: Step 1 >> Prepare a .cmd file for Start-Process, the code in…
3
votes
3 answers

Lumen queue jobs with database drivers doesn't populate table jobs

I'm completely new using laravel/lumen I generate a new lumen proyect a few hours ago and I'm trying to send job to the default queue using a database driver. my .env file looks like…
YuryDG
  • 425
  • 3
  • 7
3
votes
1 answer

Laravel job marked as failed, exception saying too many attempts but the job was successful?

I am working with laravel v5.3.30 and I have complex job which is doing guzzle requests and importing data into the system. If I multiple workers with multiple tries I am getting double, even triple insertions into my database. This is what the job…
Rohan
  • 13,308
  • 21
  • 81
  • 154
3
votes
1 answer

tsql runs fine in MSSM but failes when I put it into a job

I have a small script that I use to rebuild indexes and update statistics on a SQL Server 2014 database. It runs fine when I execute it in MSSM so I wanted to put it into a job to run every night. I used this link to create the job : how to…
GuidoG
  • 11,359
  • 6
  • 44
  • 79
3
votes
0 answers

How to schedule the same job with different parameters multiple times in Laravel 5.4?

Fairly new to Laravel and this is the first time I have worked with the Laravel scheduler and Jobs Queue. I'm working on an app to retrieve data from a remote api and store it locally. I have a config file with an array of locations. Each location…
3
votes
0 answers

ScheduledExecutorService every time execute in different delay

I'm encountering a very strange problem in my server when executing some jobs. My code: @WebListener public class ReportingScheduler implements ServletContextListener { private ScheduledExecutorService scheduler; @Override public void…
drupal2me
  • 69
  • 4
3
votes
2 answers

In what format is ActiveJob :at key

I am trying to understand in what format :at for ActiveJob is, so I can use assert_enqueued_with with :at parameter. Currently I've got this test which passes: tomorrow = 1.day.from_now.to_date assert_enqueued_with(job: ActionMailer::DeliveryJob)…
Maxim Fedotov
  • 1,349
  • 1
  • 18
  • 38