upsun resources:set, same as application containers.
For more information, see how to manage resources.
Workers are exact copies of the code and compilation output as a web instance after a build hook.
They use the same container image.
Workers canβt accept public requests and so are suitable only for background tasks.
If they exit, theyβre automatically restarted.
- Single-runtime image
- Composable image
The keys of the
workers definition are the names of the workers.
You can then define how each worker differs from the web instance using
the primary application properties.Each worker can differ from the web instance in all properties except for:buildanddependenciesproperties, which must be the samecronsas cron jobs donβt run on workershooksas thebuildhook must be the same and thedeployandpost_deployhooks donβt run on workers.
queue that was small and had a different start command could look like this: