-1

I am using the great tool for long running tasks Minion (docs)

For queued task I can provide a path to file. enter image description here

This works fine if minions are working on same host machine.

But how to create task and pass binary data, if minions are running on different host?

Eugen Konkov
  • 22,193
  • 17
  • 108
  • 158

1 Answers1

0

The best approach for this should be:

  • store file into database into special table.
  • fetch id of this record
  • pass this id as parameter to Minion task instead of file path

In the example above it will look like: --allowed=12345

Then the task sub can connect to database and fetch content of your file file by provided id

Eugen Konkov
  • 22,193
  • 17
  • 108
  • 158