Created
March 17, 2021 13:45
-
-
Save mbklein/a6be1d6ab2212a80b97d59252625f600 to your computer and use it in GitHub Desktop.
Re-Run Failed FileSets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from(as in ActionState, join: fs in FileSet, on: fs.id == as.object_id, | |
where: as.outcome == "error", distinct: true, select: fs) | |
|> Repo.all() | |
|> Enum.map(fn file_set -> | |
Meadow.Pipeline.kickoff(file_set, %{overwrite: "false", role: file_set.role.id}) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment