Displaying 20 results from an estimated 600 matches similar to: "indentify delayed_job with display_name"
2011 May 20
0
delayed_job - Undefined method error even with Mongrel
Any delayed_job gurus out there? This is a known issue on the wiki as
described at the bottom here:
https://github.com/collectiveidea/delayed_job/wiki/Common-problems
However, even when running Mongrel (on Rails 3.0.3, ruby 1.9.2, Win7)
after replacing Webrick) I am still getting this issue. My delayed_job
handlers read:
--- !ruby/struct:Delayed::PerformableMailer
object: !ruby/object:Class
2011 Apr 10
0
Delayed_job: how to raise and log exceptions
I have this in a delayed job.
def perform
begin
validation_warnings =
Account.global_import_legacy_accounts(billing_run.legacy_master_iif_csv.path)
rescue Exception => e
BackgroundProcessStatus.update(:status => "Process failed. Error:
#{e}.")
end
end
I am finding that if an exception ocurrs somewhere in the code which is
being called (i.e. somewhere in
2011 Feb 17
0
Indentify polygons that are on the border of a shapefile
Dear R users,
I would like to know how to indentify the polygons that are located on the
border of a map (i.e.shapefile).
Do you have any suggestion on how to do it?
Thank you very much,
Leo Monasterio.
[[alternative HTML version deleted]]
2016 Dec 21
2
llvm/cuda: Indentify kernel functions and optimizations
Hi,
I am trying to instrument CUDA kernel functions only (llvm-3.9.0).
Is there a way to identify cuda kernel functions?
I see that in llvm IR for CUDA has nvvm annotations section, where kernel
functions are identified for NVPTX usage. I can parse the whole IR for this
kernel metadata and then proceed, but this is very clumsy.
Other way is to work with cuda-device-only IR. But then I am not
2016 Dec 21
0
llvm/cuda: Indentify kernel functions and optimizations
https://github.com/llvm-mirror/llvm/blob/652375a8cc49615de31fd9d424753795059185b6/lib/Target/NVPTX/NVPTXUtilities.h#L58
Does this solve your problem?
On Wed, Dec 21, 2016 at 2:29 PM, Gurunath Kadam via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
> I am trying to instrument CUDA kernel functions only (llvm-3.9.0).
>
> Is there a way to identify cuda kernel
2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer:
UserMailer.delay.msg_notification(record)
In user_mailer.rb
class UserMailer < ActionMailer::Base
...
def msg_notification(record)
mail(
:to => "#{record.user.email}",
:subject => "Notification"
)
end
..
end
But this errors with:
NoMethodError (undefined method `delay'' for
2011 Aug 15
2
Delayed_Job: code working fine without .delay / with .delay it fails. Why?
Hi all,
I wrote a simple code to set up the "pit_id" from a village table from
1 to 2, from 2 to 3 and so on.
It works fine without .delay . But i need it so whats wrong with that
code?
#village_controller
def post_info
@village = Village.find(params[:id])
@village.delay.upgrade
flash[:notice] = "Upgrading"
redirect_to village_url(@village)
end
2006 Apr 28
0
rq-2.3.2
NAME
rq v2.3.2
SYNOPSIS
rq (queue | export RQ_Q=q) mode [mode_args]* [options]*
URIS
http://raa.ruby-lang.org/project/rq/
http://www.linuxjournal.com/article/7922
DESCRIPTION
ruby queue (rq) is a zero-admin zero-configuration tool used to create
instant linux clusters. rq requires only a central nfs filesystem in order
to manage a simple sqlite database as a distributed
2006 Jun 08
0
rq-2.3.3
HISTORY
---
2.3.3:
- fixed bug in updater related to io files (see tmp_stdin in jobqueue.rb)
- [IMPORTANT] removed feature where stdin jobs could contain comments (''#'').
input lines are now taken literally __except__ blank lines, which are
still ignored.
- added ability to dump stdin/stdout/stderr for any job
rq q stdout 42
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
I believe that I''ve set up everything such that single_access_token
should be sufficient to pull a user''s session.
The scenario is:
Bob uses Firefox and creates an account on LoginUI (http://
www.coolaj86.info/loginui).
Instead of using cookies, Bob''s single_access_token comes in the
response to the request.
LoginUI submits Bob''s single_access_token with every
2005 May 14
4
Problems with custom service and webrick
Hi all,
Windows XP Pro
Ruby 1.8.2
I''m having a couple of problems with the following
service. The first issue is that the code in
service_start doesn''t seem to fire off. The second
problem is that any attempt to do ''require "webrick"''
within webrick_daemon.rb causes the service to fail on
start.
Any ideas?
# webrickctl.rb
2009 Feb 24
4
Cannot pass id field to ActiveRecord
Dear all
I have a dummy question. The model code as follow:
class User < ActiveRecord::Base
set_primary_key "username"
end
In script/console
user = {:username => "123", :display_name => "345"}
=> {:username=>"123", :display_name=>"345"}
a = User.new(user)
=> #<User username: nil, display_name: "345">
2009 Aug 29
1
Delayed_Jobs Failed: Where to Check Logs/Errors?
I am using delayed_job. It generally works but on one method I am
calling the job always fails.
I checked my rails logs and that does not show anything. The action is
simply completed.
Are there logs or someway to check details on what is happening with
delayed_jobs?
I know when I send it normally/synchronously, it completes successful.
However, when I use delayed_jobs, it fails.
Code Sample:
2007 Nov 03
2
Service.services bug (pure Ruby version)
Hi all,
I''ve hit a curious bug in the Service.services method. This is in the
pure Ruby version in CVS. Check it out and run this snippet:
Service.services{ |s|
p s.service_name
p s.display_name
}
That will segfault after about 14 entries for me. It appears to be a
problem with memcpy on line 658, but I couldn''t tell you why.
The interesting thing is that the more I
2023 Jun 12
1
[PATCH libnbd 2/2] generator: state machine: Be less verbose in debug messages
On Mon, Jun 12, 2023 at 07:27:53PM +0100, Richard W.M. Jones wrote:
> Logging state transitions in debug mode produces huge amounts of
> output which is not especially helpful. This change removes this
> debugging output. This reduces the debug output by approximately two
> thirds.
> ---
> generator/state_machine_generator.ml | 12 ------------
> 1 file changed, 12
2006 Jun 16
0
Getting error on a group select
Hi,
I''m very new with Ruby and Rails. I have read Agile Web Development
with Rails and was trying to create a grouped selection list by
following his example on page 359.
My helper looks like this:
module LoginHelper
AssocOption = Struct.new(:code_name, :display_name)
class AssocType
attr_reader :type_name, :options
def initialize(name)
@type_name = name
2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
Hi,
I''m very new with Ruby and Rails. I have read Agile Web Development
with Rails and was trying to create a grouped selection list by
following his example on page 359.
My helper looks like this:
module LoginHelper
AssocOption = Struct.new(:code_name, :display_name)
class AssocType
attr_reader :type_name, :options
def initialize(name)
@type_name = name
2010 Oct 11
5
Object lost in memory/trashed?
Hi,
I''ve got a problem on which I''ve spent many hours, and I can''t get a
clue on what is happening... I hope someone here will be able to help
me.
Here is the situation : my Rails app uses acts_as_commentable and
acts_as_bookmarkable on a Diagram model. Everything''s working OK
individually: I can create a comment on a Diagram, bookmark it, and so
on.
Now,
2007 Dec 05
5
Active Record, Migration, and Translation
Hi,
I think the columns and table in migration should be able to have an
optional "display_name" set manually. Something like:
create_table :people, {display_name => "Personne"} do |t|
t.column :first_name :string, :display_name => "Prénom".
end
Let me explain my point of view:
Rails is a framework made to write programs in English. You see it when
you
2006 Mar 17
2
How do I use ''reply-to'' with Action Mailer
Hey there folks, I''m sure there is a stupidly easy answer for this, but
I can''t seem to find it. I''m building a site and I want a way for one
user to contact another. Simple enough. The problem lies in the fact I
want the email to ''come from'' the user, and not from my system.
In my ActionMailer class if I do the following:
@from =