Plugin Job scheduling

What options do we have scheduling jobs for a foreman plugin?

The requirement I have is for some scheduler to trigger code in my plugin
at set intervals.

Lindani

https://github.com/theforeman/foreman-tasks

There's a bunch of plugins that use it, including katello, foreman_salt, and
foreman_remote_execution.

You could also opt for rake tasks + cron jobs, if you need something
similar, which is what foreman core itself does.

  • Stephen
··· ----- Original Message ----- > From: "Lindani Phiri" > To: "foreman-dev" > Sent: Friday, October 7, 2016 12:33:48 PM > Subject: [foreman-dev] Plugin Job scheduling > > What options do we have scheduling jobs for a foreman plugin? > > The requirement I have is for some scheduler to trigger code in my plugin > at set intervals. >

Thanks Stephen!
Will check it out.

L.

··· On Fri, Oct 7, 2016 at 12:49 PM, Stephen Benjamin wrote:

----- Original Message -----

From: “Lindani Phiri” lindani@gmail.com
To: “foreman-dev” foreman-dev@googlegroups.com
Sent: Friday, October 7, 2016 12:33:48 PM
Subject: [foreman-dev] Plugin Job scheduling

What options do we have scheduling jobs for a foreman plugin?

The requirement I have is for some scheduler to trigger code in my plugin
at set intervals.

https://github.com/theforeman/foreman-tasks

There’s a bunch of plugins that use it, including katello, foreman_salt,
and
foreman_remote_execution.

You could also opt for rake tasks + cron jobs, if you need something
similar, which is what foreman core itself does.

  • Stephen


You received this message because you are subscribed to a topic in the
Google Groups “foreman-dev” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-dev/VGBiJCoqf6I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lindani Phiri <lindani@gmail.com> writes:

> Thanks Stephen!
> Will check it out.
>
> L.
>
>
>>
>>
>> > From: "Lindani Phiri" <lindani@gmail.com>
>> > To: "foreman-dev" <foreman-dev@googlegroups.com>
>> > Sent: Friday, October 7, 2016 12:33:48 PM
>> > Subject: [foreman-dev] Plugin Job scheduling
>> >
>> > What options do we have scheduling jobs for a foreman plugin?
>> >
>> > The requirement I have is for some scheduler to trigger code in my plugin
>> > at set intervals.
>> >
>>
>> https://github.com/theforeman/foreman-tasks
>>
>> There's a bunch of plugins that use it, including katello, foreman_salt,
>> and
>> foreman_remote_execution.

FYI: we are currently in process of getting even some Foreman core
things to run via foreman-tasks and we expect even more work to be done
in this area pretty soon. You can also checkout the remote execution
documentation on how it's being used right now [1]

Could you talk more about your plugin requirements?

[1] - Foreman :: Plugin Manuals

– Ivan

··· > On Fri, Oct 7, 2016 at 12:49 PM, Stephen Benjamin > wrote: >> ----- Original Message -----

You could also opt for rake tasks + cron jobs, if you need something
similar, which is what foreman core itself does.

  • Stephen


You received this message because you are subscribed to a topic in the
Google Groups “foreman-dev” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-dev/VGBiJCoqf6I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

>
> Lindani Phiri <lin...@gmail.com <javascript:>> writes:
>
> > Thanks Stephen!
> > Will check it out.
> >
> > L.
> >
> >
> >>
> >>
> >> > From: "Lindani Phiri" <lin...@gmail.com <javascript:>>
> >> > To: "foreman-dev" <forem...@googlegroups.com <javascript:>>
> >> > Sent: Friday, October 7, 2016 12:33:48 PM
> >> > Subject: [foreman-dev] Plugin Job scheduling
> >> >
> >> > What options do we have scheduling jobs for a foreman plugin?
> >> >
> >> > The requirement I have is for some scheduler to trigger code in my
> plugin
> >> > at set intervals.
> >> >
> >>
> >> https://github.com/theforeman/foreman-tasks
> >>
> >> There's a bunch of plugins that use it, including katello,
> foreman_salt,
> >> and
> >> foreman_remote_execution.
>
> FYI: we are currently in process of getting even some Foreman core
> things to run via foreman-tasks and we expect even more work to be done
> in this area pretty soon. You can also checkout the remote execution
> documentation on how it's being used right now [1]
>
> Could you talk more about your plugin requirements?

> [1] -
> Foreman :: Plugin Manuals
>

Hi Ivan,

Thanks for the additional info.
My plugin requirement is quite simple - I need to have a job/task that
runs in the background when the Foreman/Katello server is running.
The task will periodically (e.g… every 24 hours) call a remote API and
based on the results execute actions such as send emails to users.

Lindani

··· On Monday, October 10, 2016 at 11:33:52 AM UTC-4, Ivan Necas wrote: > > On Fri, Oct 7, 2016 at 12:49 PM, Stephen Benjamin > > > wrote: > >> ----- Original Message -----

– Ivan

You could also opt for rake tasks + cron jobs, if you need something
similar, which is what foreman core itself does.

  • Stephen


You received this message because you are subscribed to a topic in the
Google Groups “foreman-dev” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-dev/VGBiJCoqf6I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-dev...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-dev...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.