Git Product home page Git Product logo

Comments (3)

chrismaddalena avatar chrismaddalena commented on August 17, 2024 1

That could explain it. Since all the tasks in the screenshot ran at the same time, it may be that Domain Monitor causes the status to "reset" after Release Checked out Domains flips it.

When the task pulls a queryset or record, those don't update automatically if the record(s) change between the task pulling the record and the end. The sequence might be something like:

  1. Both tasks start and pull a domain marked as Unavailable
  2. The Release Checked out Domains tasks releases the domain by marking it as Available and saving the record
  3. The Domain Monitor task takes longer so it completes after the release task and updates the domain record
  4. The Domain Monitor task's copy of the domain record had the status as Unavailable so the status flips back when the task saves the record

The easiest solution is running the tasks at different times, but we can probably do some things to avoid this sort of collision. If you expect a record may have changed, you can call refresh_from_db() to make sure the record is up-to-date. We can also update on the changed fields instead of calling save(). We'll look into adjusting the task for that.

from ghostwriter.

chrismaddalena avatar chrismaddalena commented on August 17, 2024

Hey there, I'm unable to reproduce this. The domains we have checked out have been releasing as expected. I also tried it with our latest release in my development environment and the task flagged the checked out domains for release and their status flipped to "Available."

Have you made any custom changes to the task or the domain status?

The status change happens between the log message "Releasing back into the pool" and updating the JSON results with 'change': 'released' for the affected domain. You're seeing the log message and the changed key set with no errors in-between, so the domain status should be set correctly.

Jut in case, I have to ask to rule it out, did you refresh the page after seeing the task complete? The status won't update on the domain dashboard or in the list of domains until you refresh after the task completes.

from ghostwriter.

domwhewell-sage avatar domwhewell-sage commented on August 17, 2024

Hi @chrismaddalena thank you for your reply.
I have not made any modifications to the tasks apart from modifications to the container for the nmap fix as described here #362.

I have been looking at the logs the past couple of days and the same message appears each day at the scheduled time. I have been refreshing the page when the task runs however I have noticed today that it appears available once the task has run
image

And then appears checked out again moments later
image

So I think what is happening is the release task it successfully making the domain available and another task is potentially changing it back to checked-out again
image

from ghostwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.