Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Gyrex » Why the created job cannot be started automatically.
icon5.gif  Why the created job cannot be started automatically. [message #1705352] Fri, 14 August 2015 06:14 Go to next message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

In my implementation, there are several kinds of jobs for different business requirements. All the jobs are stored in a mysql table, and I created an scheduled job to scan this table and create the associated jobs according to the records in the job table.

For example, the job to scan the table called ScanJob, and it run in default queue. And as to the jobs created by the ScanJob, I want to distributed them to different queues, sush as myqueue_1, myqueue_2, and etc. Now these jobs can be created and queued successfully. But they cannot be executed automatically. While, these jobs will be started if I queue them in default queue.

what's the problem about the queue used by job?


Study every day, and love every day!
Re: Why the created job cannot be started automatically. [message #1705427 is a reply to message #1705352] Sat, 15 August 2015 09:43 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

On 2015-08-14 06:14:10 +0000, Sean Zhang said:
> what's the problem about the queue used by job?

A worker needs to be configured for processing additional queues.

I've added the relevant information to the admin guide:
https://wiki.eclipse.org/Gyrex/Administrator_Guide/Background_Tasks

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
Re: Why the created job cannot be started automatically. [message #1705543 is a reply to message #1705427] Mon, 17 August 2015 12:49 Go to previous message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

Thanks.

And finally I got the points from source code
private static final SystemSetting<List<String>> queueIdsSetting = SystemSetting.newMultiValueStringSetting("gyrex.jobs.workerEngine.queueIds", "The ids of the queues to check for jobs. By default, the single values for default and high priority will be used.").create();


in org.eclipse.gyrex.jobs.internal.worker.WorkerEngine


Study every day, and love every day!
Previous Topic:Cannot set the request filter to my JaxRsApplication
Next Topic:Is there any latest sample codes about using gyrex persistence bundles?
Goto Forum:
  


Current Time: Tue Sep 18 19:02:26 GMT 2018

Powered by FUDForum. Page generated in 0.01500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top