-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: FIT-1105: Missing FSM export state when FF is on #8990
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
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-playground canceled.
|
✅ Deploy Preview for heartex-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-storybook canceled.
|
| # Debug: Log what we're capturing | ||
| logger.info(f'_capture_context: captured context_data={context_data}') | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Debug: Log what we're capturing | |
| logger.info(f'_capture_context: captured context_data={context_data}') |
|
|
||
| logger.info( | ||
| f'BaseExportDataSerializer: task_id={task.id}, state_in_ret={ret.get("state")}, ' | ||
| f'user={user}, user_id={getattr(user, "id", None)}, flag_568={flag_568}, flag_710={flag_710}' | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| logger.info( | |
| f'BaseExportDataSerializer: task_id={task.id}, state_in_ret={ret.get("state")}, ' | |
| f'user={user}, user_id={getattr(user, "id", None)}, flag_568={flag_568}, flag_710={flag_710}' | |
| ) |
| logger = logging.getLogger(__name__) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| logger = logging.getLogger(__name__) |
| import logging | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import logging |
yyassi-heartex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just clearing out some logging that looks to be there for debugging
|
/git merge
|
This pull request refactors how background jobs are started for file exports and storage synchronization by consolidating the logic into the
start_job_async_or_syncutility. This change ensures that context (like user and organization IDs) is consistently captured and restored, simplifies the code by removing repetitive Redis connection checks, and improves job tracking. The main updates are in the export and storage sync flows, making them more robust and easier to maintain.Refactoring and simplification of background job execution:
django_rqand manual Redis connection checks with thestart_job_async_or_syncutility inlabel_studio/data_export/mixins.pyandlabel_studio/io_storages/base_models.py, ensuring consistent context propagation and reducing code duplication. [1] [2] [3] [4] [5] [6]Job tracking and logging improvements:
Background job deduplication:
Context handling enhancements: