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

Narek/async task missing task fix #359

Merged
merged 6 commits into from
Nov 25, 2024
Merged

Conversation

Ngalstyan4
Copy link
Contributor

No description provided.

Unlike other tests which run in their own isolated database, this test
runs on the postgres database, as pg_cron background jobs are only
available there. As a result, we have to be more careful cleaning up
after the test to make sure that when the same test is run again, it
will not run into conflicts with resources it created in the last round
…succeeding

When the user submits an async_task that has more than one statement,
and the first statement succeeds, then the result of the job currently
ends up as 'succeeded' even if the rest of the statements fail
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Hi! Looks like you've reached your API usage limit. You can increase it from your account settings page here: app.greptile.com/settings/usage

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

rows are filtered on pg_cron_job name = c.jobname, so overwriting the
value has no effect and makes the code confusing
@Ngalstyan4 Ngalstyan4 force-pushed the narek/async-task-missing-task-fix branch from 9aeee18 to bc64c8a Compare November 20, 2024 01:52
Make sure update script of lantern.tasks only triggers if the table exists (async_tasks are enabled)
@Ngalstyan4 Ngalstyan4 force-pushed the narek/async-task-missing-task-fix branch from b4089e8 to 2083602 Compare November 20, 2024 03:13
@Ngalstyan4 Ngalstyan4 requested a review from var77 November 20, 2024 18:55
@Ngalstyan4 Ngalstyan4 merged commit da7c3b1 into main Nov 25, 2024
63 of 67 checks passed
@Ngalstyan4 Ngalstyan4 deleted the narek/async-task-missing-task-fix branch November 25, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants