# Cron like schedule for 2.0 Extensions?

**URL:** <https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [November 20, 2023, 12:39pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713 "2023-11-20T12:39:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [November 20, 2023, 12:39pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/1 "2023-11-20T12:39:56Z")

</div>

The EF 1.0 custom db queries extension allows for use of a cron like schedule for when the queries will be executed. I have only seen the ability to specific how often (every 5 minutes, 10 minutes, etc) to run the query for EF 2.0 extensions.

Does 2.0 have the ability to specify a cron like schedule? We use that pretty heavily today with the 1.0 extension. With the sunset of EF 1.0 in Oct next year I’ve started looking at replacing the one we use today with 2.0.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 20, 2023, 1:01pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/2 "2023-11-20T13:01:37Z")

</div>

Please see&nbsp;this [thread](https://community.dynatrace.com/post/189499). Although documention does not (yet) reflect the availability. It’s just not possible to have this configured as configurable variable of the extension configuration and must be “hardcoded” in the extension yaml.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [November 20, 2023, 1:09pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/3 "2023-11-20T13:09:38Z")

</div>

What is referenced here is a standard interval such as every 5 minutes. I am aware of being able to change that to something else (10, 30, whatever) but that is not what I am referring to. As an example we have the 1.0 extension running a query on a cron schedule such as the below to run at a very specific time Monday - Friday. I don’t see that being possible yet in the 2.0 framework.

0-5 12 \* \* MON-FRI

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [November 20, 2023, 1:15pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/4 "2023-11-20T13:15:27Z")

</div>

This is scheduled to be added to the SQL datasource somewhere in the first half of 2024 to bridge the most important gap with the Custom DB Query extension.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 20, 2023, 1:15pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/5 "2023-11-20T13:15:28Z")

</div>

Yes, my fault. You can right now enable/disable extensions configuration using API. So, this can be accomplished for example by calling it from a workflow (if you are on SaaS and you have the new Dynatrace platform available) or triggering the API call remotely - for example from a cron scheduler.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [November 20, 2023, 1:20pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/6 "2023-11-20T13:20:58Z")

</div>

Thanks for the information&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;but I could see this still being a huge headache. If I recall correctly the query does not show up in a ‘separate config object’, or something you can individually manipulate. This means we would have to have a new extension for each query that has a unique schedule that cannot be put into the standard interval format.

While yes API calls are great, it just doesn’t make much sense to not have this ability added to the new framework as it causes a lot more maintenance, unless I am missing something.

[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;glad to see this is being brought in, thank you! 🙂

---

<div class="post-metadata">

**Author:** ![itamarmesa](https://avatars.discourse-cdn.com/v4/letter/i/3ec8ea/32.png) [@itamarmesa](https://community.dynatrace.com/u/itamarmesa)\
**Post date:** [April 22, 2024, 12:56pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/7 "2024-04-22T12:56:16Z")

</div>

Hi Mike\_L!

Are there any news on this? Thanks!

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [April 22, 2024, 1:06pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/8 "2024-04-22T13:06:02Z")

</div>

It has been postponed for now. It might be that this functionality is not present before the removal of extension framework 1.0.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [April 22, 2024, 2:24pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/9 "2024-04-22T14:24:24Z")

</div>

I’m sad to hear this but I do appreciate the update here. I’m not quite ready to start moving everything over to the 2.0 extension I’ve developed but when ready I will work with the app team to adjust the scheduling.

---

<div class="post-metadata">

**Author:** ![itamarmesa](https://avatars.discourse-cdn.com/v4/letter/i/3ec8ea/32.png) [@itamarmesa](https://community.dynatrace.com/u/itamarmesa)\
**Post date:** [April 23, 2024, 8:55am UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/10 "2024-04-23T08:55:04Z")

</div>

Is there any way to leave the admins some time between you adding the cron functionality to the 2.0 extensions in case that it is not ready in time before the framework 1.0 removal and the framework 1.0 extensions removal?

It will make our monitoring unavailable only dued to this.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [April 23, 2024, 10:14am UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/11 "2024-04-23T10:14:16Z")

</div>

I’m working on the priority of this. I’ll point the product manager to your comment about unavailable monitoring.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [June 28, 2024, 2:55pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/12 "2024-06-28T14:55:41Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;just checking in on this being it has been 2 months. Is there any more definitive timeframe of when cron like scheduling will be available for this?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 28, 2024, 4:06pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/13 "2024-06-28T16:06:04Z")

</div>

It’s currently in active development for the SQL data source and we expect it to be there before the removal of EF1 🙂

---

<div class="post-metadata">

**Author:** ![ASE](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@ASE](https://community.dynatrace.com/u/ASE)\
**Post date:** [June 28, 2024, 4:44pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/14 "2024-06-28T16:44:56Z")

</div>

When will EF1 be removed, [@Mike\_L](https://community.dynatrace.com/user/11520)?

We need to know exactly when our custom DB query extension 1.0 will stop working.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 28, 2024, 4:51pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/15 "2024-06-28T16:51:01Z")

</div>

Python extensions built in EF1 will be removed in October. More precisely ActiveGate and OneAgent 1.301.

JMX will keep working until March.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [June 28, 2024, 9:14pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/16 "2024-06-28T21:14:48Z")

</div>

Just to make sure I am clear here, we are using the sqlOracle datasource to query Oracle databases. This upcoming feature applies to this right? Not sure if there is a separate datasource for something like MSSQL but just wanted to be clear on what we are hoping for (this new feature to work for queries we are running against Oracle databases)

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 28, 2024, 10:28pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/17 "2024-06-28T22:28:23Z")

</div>

It is indeed planned to work with all the SQL data sources, including Oracle.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [July 26, 2024, 10:36am UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/18 "2024-07-26T10:36:30Z")

</div>

This will be added to all SQL data sources in AG 1.299. Example YAML:

 ![image (7).png](https://global.discourse-cdn.com/dynatrace/original/3X/0/c/0ccc887bbd13817b0a0c841e50cc7615326bb29b.png)

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [July 26, 2024, 12:23pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/19 "2024-07-26T12:23:06Z")

</div>

Great news here Mike. Thank you to all involved with this effort!

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [August 14, 2024, 1:14pm UTC](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713/20 "2024-08-14T13:14:00Z")

</div>

EDIT: cron support for the SQL data sources have been delayed to AG 1.301.

[Next page](https://community.dynatrace.com/t/cron-like-schedule-for-2-0-extensions/42713.md?page=2)
