-
Hello, I created a new code location with "rotate" job that runs every hour and cleans up records that are older than x days.
The problem is that, for some reason, it never really deletes the records for other code locations. It seems that, maybe, the dagster instance in this context is only the instance related to this one code location that the job is running in? It is really hard to debug, so my question is. Is this a good approach and what could be the problem here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think this looks like it could work, but some things you might want to try:
|
Beta Was this translation helpful? Give feedback.
I think this looks like it could work, but some things you might want to try:
DagsterInstance.get
matches the instance provided off of theOpExecutionContext
(which is provided to the op if you add acontext
parameter. See https://docs.dagster.io/_apidocs/execution#dagster.OpExecutionContext.instance)DagsterInstance.get()
and make theget_run_records
call with the filter you want. This could help you debug in a local…