search for: add_job

Displaying 5 results from an estimated 5 matches for "add_job".

2005 Dec 29
4
Many-to-Many: Where to add the children?
I have two classes Person and Job defined as follows: class Person < ActiveRecord::Base :has_and_belongs_to_many jobs def add_job(job_name) job = Job.find_by_name(job_name) # See if this job exists if job.nil? # If this job doesn''t exist job = Job.new # Create a new job job.name = job_name # with the given name end jobs <&...
2011 Apr 18
2
Problem with resque; parent process doesn't die
I am facing problem in resque process. I have following implementation: /config/resque_schedule.yml add_jobs_to_queue: cron: "15 * * * *" class: FooJob description: "Find results from class Bar and put on queue" /app/jobs/foo_job.rb class FooJob @queue = :normal def self.perform Bar.add_jobs end end app/models/bar.rb class Bar def self.add_jobs students = fi...
2018 May 11
0
Wine release 3.8
...dvapi32/tests: Free subkey. Dmitry Timoshkov (17): schedsvc: Also watch for job file modifications. schedsvc: Explicitly terminate the received name in the notification buffer. mstask: Export the AT Service RPC API. schedsvc: Reimplement FILE_ACTION_MODIFIED by remove_job()/add_job() sequence as MSDN suggests. mstask: Implement ITaskScheduler::Delete(). schedsvc: Pass full task file name to remove_job()/add_job(). mstask: Don't touch instance count field of the job file in the client. mstask: Initialize more task fields from the job file on load....
2007 May 21
0
cups, firefox + acrobat (getting strange output)
...dAuthorize: No authentication data provided. D [18/May/2007:13:27:58 -0300] Print-Job ipp://localhost/printers/teste_ D [18/May/2007:13:27:58 -0300] print_job: auto-typing file... D [18/May/2007:13:27:58 -0300] print_job: request file type is application/vnd.cups-raw. D [18/May/2007:13:27:58 -0300] add_job: requesting-user-name="lutierib" D [18/May/2007:13:27:58 -0300] Adding default job-sheets values "none,none"... I [18/May/2007:13:27:58 -0300] Adding start banner page "none" to job 21957. D [18/May/2007:13:27:58 -0300] Discarding unused job-created event... I [18/May/...
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many instances of in parallel. Couldn''t get pool_size to limit the amount of workers, and I figure that''s hardly optimal anyway, so would like to have the work queued up for a single named worker instead, running as soon as possible. Using MiddleMan.schedule_worker() with :job_key does start off a