Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package grails.plugin.jesque
import org.joda.time.DateTimeZone

class JesqueConfigurationService {

static transactional = false

def grailsApplication
def jesqueSchedulerService

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import java.util.concurrent.atomic.AtomicReference
import org.joda.time.DateTime

class JesqueDelayedJobThreadService implements Runnable, DisposableBean {
static transactional = true
static scope = 'singleton'

static transactional = false

protected static final Integer IDLE_WAIT_TIME = 10 * 1000
protected AtomicReference<JesqueDelayedJobThreadState> threadState = new AtomicReference(JesqueDelayedJobThreadState.New)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.joda.time.Seconds
import org.joda.time.DateTimeZone

class JesqueSchedulerService {

static transactional = false

def redisService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import java.util.concurrent.atomic.AtomicReference

class JesqueSchedulerThreadService implements Runnable, DisposableBean {

static transactional = true
static scope = 'singleton'
static transactional = false

protected static String hostName
protected static final Integer IDLE_WAIT_TIME = 10 * 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import org.springframework.beans.factory.DisposableBean
class JesqueService implements DisposableBean {

static transactional = false
static scope = 'singleton'

static final int DEFAULT_WORKER_POOL_SIZE = 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import redis.clients.jedis.Jedis

class ScheduledJobDaoService {

static transactional = false

def redisService

void save( ScheduledJob scheduledJob ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import redis.clients.jedis.Jedis

class TriggerDaoService {

static transactional = false

def redisService

void save( Trigger trigger) {
Expand Down