ipm icon indicating copy to clipboard operation
ipm copied to clipboard

Enhancement Request - Allow for creation of scheduled tasks via module.xml

Open ppatriarcaISC opened this issue 2 years ago • 4 comments
trafficstars

There's no priority behind this request, but we're working with a client who's using IPM to load in some custom code packages and setup web applications using IPM and the module.xml. A 'nice to have' that we discussed is if we could potentially set the values for a scheduled task via the module.xml so that could be put under source control as well (via the module.xml) and done via the initial deployment to a new environment. I'm aware of how to export out a task via XML, and import it into another system, so wondering if a similar template could be used here.

Just a thought. Thanks!

ppatriarcaISC avatar Sep 07 '23 14:09 ppatriarcaISC

Hi @ppatriarcaISC ! Maybe this package could help? Install this IPM module and you'll be able to schedule and manage tasks upon cron-tab settings. HTH

evshvarov avatar Sep 07 '23 15:09 evshvarov

Thanks Evgeny for the idea. I'm look into it, but this appears to set the 'task' to live outside of the standard ISC Task Management system, correct? Conceptually it looks similar, but it'd be nice to have all the normal flags and variables that the native system gives us. For example, if we wanted to only run this task on a primary mirror member, or leverage the different task types like the Ens Purges. Like I said I'll test it when I have time, but just thinking out loud.

ppatriarcaISC avatar Sep 07 '23 15:09 ppatriarcaISC

It will add a task into ISC standard task management to run a particular class method.

On Thu, Sep 7, 2023 at 7:50 PM ppatriarcaISC @.***> wrote:

Thanks Evgeny for the idea. I'm look into it, but this appears to set the 'task' to live outside of the standard ISC Task Management system, correct? Conceptually it looks similar, but it'd be nice to have all the normal flags and variables that the native system gives us. For example, if we wanted to only run this task on a primary mirror member, or leverage the different task types like the Ens Purges. Like I said I'll test it when I have time, but just thinking out loud.

— Reply to this email directly, view it on GitHub https://github.com/intersystems/ipm/issues/429#issuecomment-1710397018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP2U4VSDZ76N7X26OK3XZHUM3ANCNFSM6AAAAAA4PAL6VQ . You are receiving this because you commented.Message ID: @.***>

evshvarov avatar Sep 07 '23 16:09 evshvarov

I think having an "IRIS Task" resource processor would be the way to go here. Would be pretty straightforward to implement.

isc-tleavitt avatar Sep 07 '23 16:09 isc-tleavitt