sp-framework / core

SP Framework's Core
0 stars 0 forks source link

Workers: Tasks to have an option of running external scripts #429

Open oyeaussie opened 2 months ago

oyeaussie commented 2 months ago

Right now, tasks only have option to run functions. Scheduler has an option to run external scripts as well.

######## Issue imported from Gitea ########

Details

Gitea Issue ID : 492 State : closed Created : 2024-03-20T16:34:41+11:00 Closed : 2024-04-29T14:38:19+10:00

Issue Description

Right now, tasks only have option to run functions. Scheduler has an option to run external scripts as well.

Timeline

Label : Added enhancement on 2024-03-20T16:34:41+11:00. Label : Added P3 on 2024-03-20T16:34:41+11:00. Commit Reference: !492 - Initial Commit Commented : After giving a thought, this can be a big security concern if a end user is given an option to set the script path and raw cli via the front end. Each script that needs to be executed, should be vetted by a developer before it goes to production.

So, we can still give the option to run the script and run raw cli command, but the script needs to be already in the calls directory with information needed for the scheduler to run. Commit Reference: !492 - Job run as external unless you make a call. Multiple sub-jobs (xseconds) log multiple outputs in job. Label : Added CanClose on 2024-03-23T17:11:17+11:00. Issue Closed on 2024-04-04T03:27:57+11:00. Commit Reference: !492 - added missing exception file. Issue Closed on 2024-04-29T14:38:19+10:00. Label : Removed CanClose on 2024-05-19T19:41:58+10:00.

oyeaussie commented 2 months ago

Raw scripts are still pending...