How to read env vars in command section in schedules.json file in cron-manager.
Here’s the test json I am using
[
{
"name": "test-job",
"app_name": "cron-manager-test-komal",
"schedule": "* * * * *",
"region": "ord",
"command": "echo ${HELLO_WORLD_TOKEN}",
"command_timeout": 60,
"enabled": true,
"config": {
"metadata": {
"fly_process_group": "cron"
},
"env": {
"HELLO_WORLD_TOKEN": "test_token"
},
"auto_destroy": true,
"disable_machine_autostart": true,
"guest": {
"cpu_kind": "shared",
"cpus": 1,
"memory_mb": 512
},
"image": "curlimages/curl:8.7.1",
"restart": {
"max_retries": 1,
"policy": "no"
}
}
}
]
It just prints - ${HELLO_WORLD_TOKEN} right now