Displaying 1 result from an estimated 1 matches for "execution_params".
Did you mean:
execution_param
2007 May 31
0
Slave socket problem again
...thod is called in it''s own new thread
begin
script = SqlScript.find(:first, :conditions => [ ''state = ? AND
scheduled_run_at IS NOT NULL AND scheduled_run_at < ? OR'' +
'' EXISTS
(SELECT id FROM execution_params WHERE sql_script_id = sql_scripts.id)
AND'' +
'' state <> ?'',
SqlScript::STATE_SCHEDULED, Time.now, SqlScript::STATE_RUNNING])
if script.nil?
logger.debug "Nothing to run"
else...