Skip to content
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

Hook Rest Service submission data #4817

Open
jdugh opened this issue Jan 22, 2024 · 0 comments
Open

Hook Rest Service submission data #4817

jdugh opened this issue Jan 22, 2024 · 0 comments
Labels

Comments

@jdugh
Copy link

jdugh commented Jan 22, 2024

Description

Each time the celery task 'service_definition_task' is run, an instance of 'ServiceDefinition' is created. ServiceDefinition calls the 'self._get_data()' def in its __init__, which retrieves the submission data from the database.
Between each attempt of the service_definition_task, the submission data is retrieved.
If between two attempts of the task, the submission is modified, the data sent to the REST service will therefore be different.

Steps to Reproduce

  1. Create a REST Hook Service
  2. Point to fake URL (who return another HTTP status code than 200) - to enter in the retry process
  3. Create a new submission
  4. Wait for the first service_definition_task send task to be called
  5. Edit this submission (before the next try - in 1 minute the first time ; be fast 😄)
  6. Wait the next retry
  7. The data sent to the REST service is no longer the same as the first time

Expected behavior

Is it the expected behavior ? I except the expected behavior is the original submission data, no ?

Actual behavior

Data sent to the REST service is the latest version in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants