Skip to content

How to set the last MontlyPartition to the current month #24094

Closed Answered by garethbrickman
dridk asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is maybe something like what you are looking for?

end_offset (int) – Extends the partition set by a number of partitions equal to the value passed. If end_offset is 0 (the default), the last partition ends before the current time. If end_offset is 1, the second-to-last partition ends before the current time, and so on.

https://docs.dagster.io/_apidocs/partitions#dagster.MonthlyPartitionsDefinition

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dridk
Comment options

Answer selected by garethbrickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: partitions Related to Partitions
2 participants