-
Notifications
You must be signed in to change notification settings - Fork 10
fix: time based state refresh for each activity #796
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
1d75391
76ab9fd
e3ec139
e4c2e07
54470ba
f3ebaed
2c08a4b
d367dfe
d10af7e
5d1e49f
c91d6e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import os | ||
| from datetime import datetime | ||
| from typing import ( | ||
| TYPE_CHECKING, | ||
| Any, | ||
|
|
@@ -68,6 +69,7 @@ class BaseSQLMetadataExtractionActivitiesState(ActivitiesState): | |
| sql_client: Optional[BaseSQLClient] = None | ||
| handler: Optional[BaseSQLHandler] = None | ||
| transformer: Optional[TransformerInterface] = None | ||
| last_updated_timestamp: Optional[datetime] = None | ||
|
|
||
|
|
||
| class BaseSQLMetadataExtractionActivities(ActivitiesInterface): | ||
|
|
@@ -177,6 +179,7 @@ async def _set_state(self, workflow_args: Dict[str, Any]): | |
| self._state[workflow_id].sql_client = sql_client | ||
| handler = self.handler_class(sql_client) | ||
| self._state[workflow_id].handler = handler | ||
| self._state[workflow_id].last_updated_timestamp = datetime.now() | ||
abhishekagrawal-atlan marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Partial state initialization prevents automatic state refreshThe refactored Additional Locations (1) |
||
|
|
||
| # Create transformer with required parameters from ApplicationConstants | ||
| transformer_params = { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.