- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 01:35 AM
Hey folks,
Can someone please suggest if there is a way to spawn a job cluster of a given size if a parameter of the job invocation (e.g file_name) contains a desired value? I have a job which 90% of the time deals with very small files, but the remaining 10% requires much bigger machines. How can i define job.yml file in such a way? Is this even possible to be done without some pre-process that checks the file name?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 12:06 PM
Hi @Bart_DE
No — a single job.yml file can’t “look inside” a parameter like file_name and then decide to spin up a different job-cluster size on the fly.
Job-cluster definitions in Databricks Workflows (Jobs) are static. All the heavy-lifting has to be done outside the cluster specification: