This is a summary of the changes discussed in job scheduling reimagined.
Migrate Apps
mkdir -p /etc/fastx/schedule
foreach app in /etc/fastx/apps
if there is a parameter named scheduleDir
Copy the scheduleDir directory into /etc/fastx/schedule
#update the app
# scheduleDir=/path/to/my_scheduler
[schedule]
dir=my_scheduler
# if there is a parameter named [nodeMetadataFilter]
[schedule.data]
metaKey1=metaVal1
metaKey2=metaVal2
Migrate Forms
foreach file in /etc/fastx/forms
extract the html field and put it into a file formid.html
foreach app in /etc/fastx/apps
if it has a forms array
find the form id
find the [schedule.dir] in the app
cp formid.html /etc/fastx/schedule/[schedule.dir]/form.html
if the formid was actually using a script, copy the script into /etc/fastx/schedule/[schedule.dir]/form_script
delete the forms parameter as it is no longer used
delete the overrideDefaultForms as it is no longer used
Migrate Load Balancer
In /etc/fastx/fastx.env
LOAD_BALANCER=type
In each scheduler in /etc/fastx/schedule/[schedule.dir]/
edit metadata.ini
node-select=type
In /etc/fastx/fastx.env
LOAD_BALANCER=custom
LOAD_BALANCER_SCRIPT=/path/to/custom/script
cp /path/to/custom/script /etc/fastx/schedule/[schedule.dir]/node-select