Skip to content

Instantly share code, notes, and snippets.

@mbklein
Created March 17, 2021 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbklein/a6be1d6ab2212a80b97d59252625f600 to your computer and use it in GitHub Desktop.
Save mbklein/a6be1d6ab2212a80b97d59252625f600 to your computer and use it in GitHub Desktop.
Re-Run Failed FileSets
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