Help wanted to handle the excel file import, format it and export using queue. #3600
Unanswered
inquisitive-stha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My code: (controller)
On the above controller, I am dispatching
ScrubberJob
.ScrubberJob
This job is triggering
ChunkScrubberImport
ChunkScrubberImport
Now, this import is triggering
ChunkScrubberExport
ChunkScrubberExport
this is working fine for 1 cycle or fetch, now I have the following questions.
start_row
to$data['start_row'] + 1000
since 1000 is the limit, but, I don't know what might be the best place to put this one. After 1 cycle I want to trigger, scrubberjob written belowbut with updated
start_row
Since, on first cycle, the file would already be created since I already know the filename, which is stored in
$data['export_path']
. So, instead of overwriting the old file, I want to append rows to the already existing file from the second cycle.How to detect the end of the file, so that no more ScrubberJob is dispatched.
By the way, I have also seen about
ShouldQueue
in docs but I am not sure if it could provide all the needs I have mentioned here. Or am I just complicating things and should go withshouldQueue
instead? But still, that might need the solution of my question number 2Beta Was this translation helpful? Give feedback.
All reactions