I think this is beyond queuing - you can use a topology listener for that
by disabling a topic on all instances but the active one. If the active one
goes down, an event is fired on the remaining instances, and another one
can take over. This will ensure rescheduling of jobs to that instance by
the job manager.
So all you have to take care of is managing the blacklist of the job
consumer manager based on topology events.

Carsten


2013/9/3 Ian Boston <i...@tfd.co.uk>

> Hi,
>
> I want to be able to submit jobs, distribute those jobs and have those
> jobs restart on instance failover in a way not supported by the
> current jobs queues in the event bundle, without requiring the event
> bundle to be re-released.
>
> eg
> Run only on the active Sling instance in a active/passive pair and if
> the active instance changes, then that instance new active instance to
> run all the jobs, including jobs that were added, but not run on the
> old active instance.
>
> Ian
>
>
> On 3 September 2013 18:00, Carsten Ziegeler <cziege...@apache.org> wrote:
> > In theory this would be possible, but I guess this would create maybe
> more
> > problems - an implementation might not be available (anymore), a
> > configuration might point to a non existing implementation etc. A lot
> more
> > things could go wrong.
> >
> >
> > What's your use case? :)
> >
> > Carsten
> >
> >
> > 2013/9/3 Ian Boston <i...@tfd.co.uk>
> >
> >> Hi,
> >> I see that the JobQueues are hard coded into the JobManager.
> >>
> >> Would it be possible to make the JobQueue an API so that its could be
> >> provided by another bundle ?
> >>
> >> Best Regards
> >> Ian
> >>
> >
> >
> >
> > --
> > Carsten Ziegeler
> > cziege...@apache.org
>



-- 
Carsten Ziegeler
cziege...@apache.org

Reply via email to