Displaying 4 results from an estimated 4 matches for "my_job".
Did you mean:
my_job1
2011 May 25
0
indentify delayed_job with display_name
...erflow.com/questions/3638250/how-to-cancel-scheduled-job-with-delayed-job-in-rails
They are using this code:
class MyJob < Struct.new(:user_id);
def perform
# ...
end
def display_name
return "MyJob-User-#{user_id}"
end
end
# store reference to a User
my_job = MyJob.new(User.first.id) # users.id is 1
job = Delayed::Job.enqueue(my_job, 0, 1.hour.from_now)
job.name
# => "MyJob-User-1"
job.handler
# => "--- !ruby/struct:MyJob \nuser_id: 1\n"
This is great and this is exactly what I need. I am just wondering
that I never read the...
2007 Dec 29
0
(unknown)
...tus to a log named using the following convention:
rails_root/log/bj.#{ HOSTNAME }.#{ RAILS_ENV }.log
Bj allows you to submit jobs to multiple databases; for instance,
if your
application is running in development mode you may do:
Bj.in :production do
Bj.submit ''my_job.exe''
end
Bj manages the ever growing list of jobs ran by automatically
archiving them
into another table (by default jobs > 24 hrs old are archived) to
prevent the
jobs table from becoming bloated and huge.
All Bj''s tables are namespaced and accessible vi...
2006 Apr 28
0
rq-2.3.2
...plan to query groups of jobs with some common feature consider
using the ''--tag, -t'' feature of the submit mode which allows a user to
tag a job with a user defined string which can then be used to easily
query that job group
~ > rq q submit --tag=my_jobs - < joblist
~ > rq q query tag=my_jobs
6) in general all but numbers will need to be surrounded by single
quotes unless the query is a ''simple'' one. a simple query is a query
with no boolean operators, not quotes, and where every part of it...
2006 Jun 08
0
rq-2.3.3
...plan to query groups of jobs with some common feature consider
using the ''--tag, -t'' feature of the submit mode which allows a user to
tag a job with a user defined string which can then be used to easily
query that job group
~ > rq q submit --tag=my_jobs - < joblist
~ > rq q query tag=my_jobs
6) in general all but numbers will need to be surrounded by single
quotes unless the query is a ''simple'' one. a simple query is a query
with no boolean operators, not quotes, and where every part of it...