-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job schedule pause_status
from YAML Configuration Ignored upon Deployment
#859
Comments
Thanks for reporting the issue. The active pausing of deployed jobs is a feature of You can disable this behavior by removing |
Thank you for clarifying this, @pietern. It is indeed working fine in prod mode. While I can understand the rationale behind defaulting to a paused state in development mode to avoid inadvertently running jobs, the hardcoded nature of this behavior could be a hindrance to flexibility. Honestly, it was quite confusing, and I spent more time than I'd like to admit trying to figure out why my jobs weren't activating. Would it be possible to allow a configuration override for the pause_status in development mode? This way, developers who wish to have their jobs active in development mode can do so with explicit configuration, while others can stick with the default paused state. This could potentially save other developers some confusion and time in the future. Thank you for your time and consideration. |
Thanks for the report @alexerm! Making it overridable makes sense. I think the main issue you're calling out is the discoverability of this feature. What we'd like to do is add a "description" to the job so this behavior is described in the Jobs UI. |
@alexerm One more question, could you clarify your use case? Why would you want to run your personal development copy on a schedule? Is it possible your goal was to do a production deployment? |
Partly mitigates databricks#859
Partly mitigates databricks#859
Partly mitigates #859. It's still not clear to me if there is an actual use case or if users are trying to use "development" mode jobs for production, but making this overridable is reasonable. Beyond this fix I think we could do something in the Jobs schedule UI, but it would help to better understand the use case (or actual reason of confusion). I expect we should hint customers to move away from dev mode rather than unpause.
This was fixed in #885 and released in v0.210.0. |
In Databricks CLI v0.207.0, when defining a job in a YAML configuration file and setting the
pause_status
toUNPAUSED
, the job is expected to be deployed to the Databricks platform in an active state. However, the job is always deployed in a paused state, requiring manual intervention to resume the job each time it's deployed. This behavior diverges from the expected behavior as defined by thepause_status
setting in the YAML configuration.Here's a snippet from a YAML configuration demonstrating the issue:
The commented
TODO
line indicates the problem. Despitepause_status: UNPAUSED
being set, the job schedule is always deployed in a paused state.Upon reviewing the relevant section of code in the Databricks CLI, it appears that the
pause_status
setting from the YAML configuration is being ignored, and thePauseStatus
is being unconditionally set toPaused
. Here's the snippet from theprocess_target_mode.go
file:Expected Behavior:
pause_status: UNPAUSED
is set in the YAML configuration.Actual Behavior:
pause_status
setting in the YAML configuration.Disclaimer: I have recently begun working with this project and there's a possibility that my understanding of the issue might be incorrect. I appreciate any feedback or guidance to help clarify the situation and am open to suggestions to improve the deployment process. Thank you for your understanding and assistance.
Fix Suggestion:
It might be necessary to modify the code to check the
pause_status
setting from the YAML configuration and apply it accordingly during the deployment process. A potential fix could be to update theprocess_target_mode.go
file to ensurePauseStatus
is set based on thepause_status
value from the YAML configuration:This issue requires users to manually resume the job each time it's deployed, which is error-prone and can lead to delays in job execution. It's crucial to have the
pause_status
setting respected to ensure smooth deployment and operation of job schedules on the Databricks platform. This behavior seems to be a bug or an unexpected oversight that needs addressing to align the deployment process with the configuration settings provided by users.The text was updated successfully, but these errors were encountered: