Skip to content

Commit

Permalink
Add cursor to run key to fix skips (#25652)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchrch authored Apr 28, 2023
1 parent 4912cc6 commit 294ac52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def metadata_updated_sensor_definition(context: SensorEvaluationContext):
serialized_new_etags_cursor = serialize_composite_etags_cursor(list(new_etags_cursor_set))
context.update_cursor(serialized_new_etags_cursor)
context.log.info("New updated_metadata_files in GCS bucket")
return RunRequest(run_key="updated_metadata_files")
run_key = f"updated_metadata_files:{serialized_new_etags_cursor}"
return RunRequest(run_key=run_key)

return metadata_updated_sensor_definition
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def registry_updated_sensor_definition(context: SensorEvaluationContext):

context.update_cursor(new_etag_cursor)
context.log.info("New registries in GCS bucket")
return RunRequest(run_key="updated_registries")
run_key = f"updated_registries:{new_etag_cursor}"
return RunRequest(run_key=run_key)

return registry_updated_sensor_definition

0 comments on commit 294ac52

Please sign in to comment.