-
-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0] identity_exact not working w/ chained jobs? #552
Comments
I confirm that by removing the chain from the equation, it works:
This works fine in my server action and no extra job gets created. |
Ciao @guewen 👋 Ahhh! I missed that, thanks! |
I would need to dive into the implementation and I won't be able now 😔 IIRC the idea was that identity keys on a graph is an all or nothing thing: if all the keys are identical, then the whole graph is discarded. Otherwise the graph is enqueued. Hope that helps |
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
I have this piece of code
I inject
identity_key=identity_exact
here.Here I test that no duplicated job gets created but it does not work.
I have 6 jobs at the end while I expect to have still 2 jobs only.
I've inspected the identity keys of those jobs and they all match 🤔
I also checked if
job.job_record_with_same_identity_key
gets called: it is called but it cannot find the jobs.Flushing does not help.
I've created a silly server action to test the same piece of code via UI on the same record and gives me the same result...
Am I doing something wrong or we have a bug w/ chained jobs?
Side note: unless I'm mistaken I think
job.job_record_with_same_identity_key
does not search for all possible states when you have a job that is waiting for a dependency herequeue/queue_job/job.py
Line 303 in 199e9e4
The text was updated successfully, but these errors were encountered: