Skip to content

Conversation

@stnguyen90
Copy link
Contributor

What does this PR do?

Update the schedule worker to support messages

Test Plan

Manual

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90
Copy link
Contributor Author

getDocument() shouldn't have a filter query:

$provider = $dbForProject->getDocument('providers', $providerId, [Query::equal('enabled', [true])]);

@stnguyen90
Copy link
Contributor Author

Wherever we check for providers, we need to check whether they're enabled. e.g.:

if (!$providerId && $primaryProvider instanceof Document && !$primaryProvider->isEmpty()) {

if ($provider->isEmpty()) {

@stnguyen90 stnguyen90 mentioned this pull request Jan 11, 2024
2 tasks
@abnegate abnegate closed this Jan 11, 2024
@abnegate abnegate deleted the scheduling-temp branch January 11, 2024 02:38
@stnguyen90 stnguyen90 mentioned this pull request Jan 11, 2024
2 tasks
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.

3 participants