Support node, deno, & python runtimes for timer functions

This commit is contained in:
Peter Stockings
2025-11-25 21:53:39 +11:00
parent c0970835ab
commit dc2c22c939
6 changed files with 29 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ history_url=url_for('timer.history', function_id=function_id)) }}
showDeleteButton: true,
isTimer: true,
showTimerSettings: true,
frequencyMinutes: {{ timer_function.frequency_minutes }},
cancelUrl: "{{ url_for('timer.overview') }}",
generateUrl: "{{ url_for('llm.generate_script') }}",
showPublicToggle: false,

View File

@@ -35,7 +35,11 @@ title='New Timer Function')
isTimer: true,
showTimerSettings: true,
triggerType: 'interval',
frequencyMinutes: 60
frequencyMinutes: 60,
runtime: 'node',
showPublicToggle: false,
showLogRequestToggle: false,
showLogResponseToggle: false
})
})
</script>

View File

@@ -41,6 +41,10 @@
hx-get="{{ url_for('timer.edit', function_id=function.id) }}" hx-target="#container"
hx-swap="innerHTML" hx-push-url="true">
<span class="font-medium text-gray-900 dark:text-white">{{ function.name }}</span>
<span
class="bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 text-xs font-medium px-2.5 py-0.5 rounded-full uppercase">
{{ function.runtime }}
</span>
<span
class="bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 text-xs font-medium px-2.5 py-0.5 rounded-full">
{{ function.invocation_count }}