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

Scheduling Jobs with JobScheduler in Android

I have a problem with jobs schedules with JobScheduler in new Android API 21. This is the code what I schedule the job with 60 seconds interval like below: ComponentName serviceName = new ComponentName(this, MyJobService.class); JobInfo jobInfo =…
lucasb.aquino
  • 657
  • 1
  • 6
  • 10
9
votes
13 answers

Did you ever get an unexpected answer during interview?

When interviewing for a programming position, did you ever get an answer to your question that you didn't quite expect? The answer could've been quite smart that you didn't even know or it could've been a dumbest answer you never expected. I'm…
BlueGene
  • 1,071
  • 1
  • 20
  • 30
9
votes
5 answers

how to restrict the concurrent running map tasks?

My hadoop version is 1.0.2. Now I want at most 10 map tasks running at the same time. I have found 2 variable related to this question. a) mapred.job.map.capacity but in my hadoop version, this parameter seems abandoned. b)…
HaiWang
  • 187
  • 2
  • 4
  • 12
9
votes
3 answers

SQL how to make a job run a job?

I'd like to call another job immediately after first one has finished, or to be more precise is it possible to call an entire sql job via a job step. I'd like to avoid merging these jobs into 1 so I wonder if this solution is possible?
ilija veselica
  • 9,414
  • 39
  • 93
  • 147
8
votes
2 answers

Gitlab pipeline should stop on pipeline failure

I have a sample pipeline in gitlab. i want the the pipe to stop if any of the jobs fail. below is the code am using to replicate the scenario. the pipe does show failure as the status but the jobs continue to run even after a failed stage. example…
Sparc Splunk
  • 93
  • 1
  • 1
  • 5
8
votes
2 answers

Are end dates for sql server job schedules inclusive or exclusive

I have a schedule that does something daily, every two hours in a time interval. I want to set an end date for this schedule, but I'm wondering if it is inclusive or exclusive. In other words, if I set the end date at march 26, will today be the…
Martijn
  • 11,964
  • 12
  • 50
  • 96
8
votes
3 answers

How to resolve ORA-27475: "JOB" must be a program or chain

I have a couple of oracle procedures: create or replace procedure receive_sms (p_to_date in date) is .. end; and create or replace procedure send_sms (p_date in date) is .. end; and I want to create a chain based on these procedures and add…
en Lopes
  • 1,863
  • 11
  • 48
  • 90
8
votes
4 answers

Laravel unable to modify queued job code

When I send a job that fails due to an exception such as 'ErrorException' with message 'Undefined variable: sender' and I fix the code and re-fire the event, the previous code runs again and I get the same error. I have no idea why Laravel re-runs…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
8
votes
2 answers

Cluster of computers for rent?

I am doing a project in the university which requires running of multiple instances (1000s) of a program I've written (in C++), which runs for quite a while (say 2 hours). The program is very self contained - it does not require input files, and the…
R S
  • 11,359
  • 10
  • 43
  • 50
8
votes
2 answers

EnvVar SVN_REVISION and SVN_URL not set

The environment variables %SVN_REVISION% and %SVN_URL% aren't set when I use a SVN repository running on a Visual SVN server. All other SVN interactions work fine, e.g. checkout and change detection. Running the job with another SVN server works…
Sascha Vetter
  • 2,466
  • 1
  • 19
  • 36
8
votes
2 answers

How to schedule a job once every Thursday using Kue?

Using Kue, how do I schedule a job to be executed once every Thursday? The Kue readme mentions that I can delay a Job, but what about repeatedly executing the Job at a specific time? I can do what I want with a cron job, but I like Kue's…
Sam
  • 6,414
  • 11
  • 46
  • 61
8
votes
1 answer

Multiple delayed job processes starting same job

I'm using delayed job in a setup where I run multiple workers. For the sake of my question, it doesn't really matter, but let's say I run 10 workers (doing that in development mode currently). The problem I am having is that two different workers…
Kenny Lövrin
  • 781
  • 5
  • 15
7
votes
2 answers

Makefile - Pass jobs param to sub makefiles

I have a makefile which calls multiple other makefiles. I'd like to pass the -j param along to the other makefile calls. Something like (make -j8): all: make -f libpng_linux.mk -j$(J) Where $(J) is the value 8 from -j8. I absolutely swear…
Halsafar
  • 2,540
  • 4
  • 29
  • 52
7
votes
3 answers

testing using Resque with Rspec examples?

I am processing my background jobs using Resque. My model looks like this class SomeClass ... repo = Repo.find(params[:repo_id]) Resque.enqueue(ReopCleaner, repo.id) ... end class RepoCleaner @queue = :repo_cleaner def…
Gagan
  • 4,278
  • 7
  • 46
  • 71
7
votes
2 answers

Run databricks job from notebook

I want to know if it is possible to run a Databricks job from a notebook using code, and how to do it I have a job with multiple tasks, and many contributors, and we have a job created to execute it all, now we want to run the job from a notebook to…
Joe
  • 561
  • 1
  • 9
  • 26