Skip to main content



      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 02:14 Go to next message
Eclipse UserFriend
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?
Re: Why the created job cannot be started automatically. [message #1705427 is a reply to message #1705352] Sat, 15 August 2015 05:43 Go to previous messageGo to next message
Eclipse UserFriend
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 08:49 Go to previous message
Eclipse UserFriend
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
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: Mon May 05 18:35:14 EDT 2025

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

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

Back to the top