2024-01-01 18:33:16 +00:00
< div >
2024-06-07 09:01:10 +00:00
< x - slot : title >
{{ data_get_str ( $resource , 'name' ) -> limit ( 10 ) }} > Scheduled Tasks | Coolify
2024-09-23 06:58:04 +00:00
</ x - slot >
@ if ( $type === 'application' )
2024-05-14 13:19:28 +00:00
< h1 > Scheduled Task </ h1 >
2024-01-10 11:41:29 +00:00
< livewire : project . application . heading : application = " $resource " />
2024-09-23 06:58:04 +00:00
@ elseif ( $type === 'service' )
2025-05-19 19:50:32 +00:00
< livewire : project . service . heading : service = " $resource " : parameters = " $parameters " />
2024-09-23 06:58:04 +00:00
@ endif
2024-01-02 02:23:29 +00:00
2024-01-10 11:41:29 +00:00
< form wire : submit = " submit " class = " w-full " >
2024-05-14 13:19:28 +00:00
< div class = " flex flex-col gap-2 pb-2 " >
2025-07-12 10:26:19 +00:00
< div class = " flex gap-2 items-end " >
2024-01-02 02:23:29 +00:00
< h2 > Scheduled Task </ h2 >
< x - forms . button type = " submit " >
Save
</ x - forms . button >
2024-11-07 10:09:38 +00:00
@ if ( $resource -> isRunning ())
< x - forms . button type = " button " wire : click = " executeNow " >
Execute Now
</ x - forms . button >
@ endif
2024-09-23 06:58:04 +00:00
< x - modal - confirmation title = " Confirm Scheduled Task Deletion? " isErrorButton buttonTitle = " Delete "
submitAction = " delete( { { $task->id }}) " : actions = " ['The selected scheduled task will be permanently deleted.'] " confirmationText = " { { $task->name }} "
2024-09-04 17:44:10 +00:00
confirmationLabel = " Please confirm the execution of the actions by entering the Scheduled Task Name below "
2024-09-23 06:58:04 +00:00
shortConfirmationLabel = " Scheduled Task Name " : confirmWithPassword = " false "
step2ButtonText = " Permanently Delete " />
2024-09-18 16:05:06 +00:00
2024-01-02 02:23:29 +00:00
</ div >
2024-09-24 19:29:55 +00:00
< div class = " w-48 " >
2024-11-07 10:09:38 +00:00
< x - forms . checkbox instantSave id = " isEnabled " label = " Enabled " />
2024-09-24 19:29:55 +00:00
</ div >
< div class = " flex gap-2 w-full " >
2024-11-07 10:09:38 +00:00
< x - forms . input placeholder = " Name " id = " name " label = " Name " required />
< x - forms . input placeholder = " php artisan schedule:run " id = " command " label = " Command " required />
< x - forms . input placeholder = " 0 0 * * * or daily " id = " frequency " label = " Frequency " required />
2024-08-16 19:22:06 +00:00
@ if ( $type === 'application' )
2024-09-23 06:58:04 +00:00
< x - forms . input placeholder = " php "
2024-11-07 10:09:38 +00:00
helper = " You can leave this empty if your resource only has one container. " id = " container "
2024-09-23 06:58:04 +00:00
label = " Container name " />
2024-08-16 19:22:06 +00:00
@ elseif ( $type === 'service' )
2024-09-23 06:58:04 +00:00
< x - forms . input placeholder = " php "
helper = " You can leave this empty if your resource only has one service in your stack. Otherwise use the stack name, without the random generated ID. So if you have a mysql service in your stack, use mysql. "
2024-11-07 10:09:38 +00:00
id = " container " label = " Service name " />
2024-08-16 19:22:06 +00:00
@ endif
</ div >
2024-09-23 06:58:04 +00:00
</ form >
2024-01-05 05:06:36 +00:00
2024-09-23 06:58:04 +00:00
< div class = " pt-4 " >
< h3 class = " py-4 " > Recent executions < span class = " text-xs text-neutral-500 " > ( click to check output ) </ span ></ h3 >
2024-11-07 10:09:38 +00:00
< livewire : project . shared . scheduled - task . executions : taskId = " $task->id " />
2024-09-23 06:58:04 +00:00
</ div >
2024-01-01 18:33:16 +00:00
</ div >