Skip to content

Working across scripts #18

Open
Open

Description

@graingerkid

Hey,

I'm trying to use this across 2 scripts; as in one queue with 2 scripts, one for input and one for processing.
I seem to be struggling to get them to work together.

Any reason you might know of, for this?

Activity

  1. graingerkid commented on Mar 4, 2018

    @graingerkid
    Author

    Think I figured it out - it was because I had an instance I was reusing rather than creating a new instance for each check.

  2. graingerkid commented on Mar 4, 2018

    @graingerkid
    Author

    Me again!

    Just wanted to say thank you!

    I've been battling with threading for the past few days; it's tricky on my server and while fast, it's been problematic.

    I implemented my script with asyncio this morning and while it's a nearer implementation it was slow in comparison (It's my first play with the lib so I'm sure there are ways to speed it up...)

    I was then going to write a file type queue system (you beat me to it) and with a little playing around, I've figured out that I can create a new instance for each time I push or pop.

    So, I've split my code down to 3 files, one adding to my queue and then two reading - I've been testing this over the past hour and I'm not seeing any duplication issues as of yet. Happy days 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions