Skip to content
Discussion options

You must be logged in to vote

I'd say there are 2 ways:

  • Either integrate your binary file in the payload, for example encode your payload as base64 and consider it as a string. This works if files are small, because you'll be storing them directly in the database
  • Or store the file somewhere and send an identifier to the file (e.g. store the file in S3 and send the s3:// url). This is a generalization over your suggestion of creating another table. Given that it will be kept outside of procrastinate anyway, a table may not be the best way, depending on your file size (postgresql is not a filesystem).

Also, keep in mind that the way it's done today, procrastinate doesn't provide a way of getting results back. Tasks ar…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by yigitest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants