Skip to content

Comments

Vivekananda_session4_4VP20CS062_Prajwal#3

Open
Prajwal7Amin wants to merge 2 commits intoUniCourt:mainfrom
Prajwal7Amin:main
Open

Vivekananda_session4_4VP20CS062_Prajwal#3
Prajwal7Amin wants to merge 2 commits intoUniCourt:mainfrom
Prajwal7Amin:main

Conversation

@Prajwal7Amin
Copy link

No description provided.

# the configuration object to child processes.
# - namespace='CELERY' means all celery-related configuration keys
# should have a `CELERY_` prefix.
app.config_from_object('django.conf:settings', namespace='CELERY')
Copy link

Choose a reason for hiding this comment

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

@Prajwal7Amin what's the use of this?

Copy link
Author

Choose a reason for hiding this comment

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

@anushds Settings from Django project's settings module is loaded. namespace='CELERY' is the namespace for the settings that Celery loads.

Copy link

Choose a reason for hiding this comment

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

@Prajwal7Amin could you give a example of what values are you exactly referring to?


utc=pytz.UTC

@app.task(bind=True, name="extract")
Copy link

Choose a reason for hiding this comment

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

@Prajwal7Amin You've added that name="extract", whose name is it implying?

Copy link
Author

Choose a reason for hiding this comment

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

@anushds name="extract" is specifying the name of the Celery task function that I have created.

Copy link

Choose a reason for hiding this comment

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

@Prajwal7Amin celery task function?
You're actually implying two things in your answer.

  1. You're saying that it's name of celery task.
  2. You're saying that it's name of function.
    Which of them is correct?

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