-
Notifications
You must be signed in to change notification settings - Fork 960
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
stale_nodes_statement of Neo4jStalenessRemovalTask not returning any result #567
Comments
I will take a look as well. Internally we have been using this approach to clean stale metadata which we haven't had much issues. But take a look you example. |
@feng-tao Were you able to review this issue? |
@ayush-san sorry too busy this week. |
@feng-tao Should I create a PR of what I think is the fix of this problem and you can review it later or wait for you to review the issue? |
@ayush-san yeah, that will be good as well as I am overloaded this few weeks. |
@feng-tao When can we release a new version of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been automatically closed for inactivity. If you still wish to make these changes, please open a new pull request or reopen this one. |
I am trying to use Neo4jStalenessRemovalTask to remove stale data from Neo4j. Following are the configs I am passing to the task
Expected Behavior
I have pushed data to Amundsen three days back so while removing the stale data, validation for staleness percentage should have thrown an exception but it didn't. Instead, it ran successfully without deleting anything
Current Behavior
The stale data removal task is running without deleting any data. I am seeing the following logs in the airflow task
So I tried running the code of _validate_relation_staleness_pct(), I can see that stale_relations_statement is not returning any result but when I tried running the same statement in neo4j browser by replacing param with the desired value it's returning the desired result.
But if I use params in neo4j browser, then there also query is not returning any result
Screenshots
Possible Solution
If I change the _decorate_staleness() marker query for the case where ms_to_expire is given and update params dict accordingly then stale_nodes_statement is returning the result
Your Environment
The text was updated successfully, but these errors were encountered: